Re: Array form processing
| From: | Ron Piggott | Date: | Tue, 29 Jun 2010 21:22:15 +0000 |
| Subject: | Re: Array form processing | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-306556@lists.php.net to get a copy of this message | ||
Am I on the right track? I don't know what to do with the second "FOREACH"
<?php
foreach($_REQUEST as $key => $val) {
$$key = $val;
echo $key . ": " . $val . "<br>";
if ( $val == "Array" ) {
$i=0;
foreach ($val) {
echo "$val[$i]<br>";
$i++;
}
}
}
?>