Help with $HTTP_POST_VARS !
| From: | Peter Dowie | Date: | Mon, 06 Aug 2001 19:40:16 +0000 |
| Subject: | Help with $HTTP_POST_VARS ! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-61471@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to add all elements in $HTTP_POST_VARS into my $FormData array
which I have is a session variable.
This works fine unless I have an element of $HTTP_POST_VARS which is an
array.
eg if I have $HTTP_POST_VARS['Array'] then this doesnt work as my
$FormData['Array'] is no longer an array.
Can anyone help me ??
thanks
Pete
while ( list($name,$value) = each($HTTP_POST_VARS)) {
if (is_array($value))
{
for($x=0;$x<count($value);$x++)
{
$FormData[$name] = $value[$x];
}
}
else
{
$FormData[$name] = $value;
}
}