$HTTP_POST_VARS
| From: | Brian Rue | Date: | Wed, 23 Aug 2000 22:01:42 +0000 |
| Subject: | $HTTP_POST_VARS | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-13234@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to cycle through the $HTTP_POST_VARS array to send the value for each to myself by
email.
Here's the code:
$formData = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$formData = $formData."$key => $val\n>";
}
mail("email","subj",$formData);
When I run this code on the server, I get this error:
Warning: Variable passed to each() is not an array or object
What am I doing wrong?
Thanks,
Brian Rue