RE: [PHP] $HTTP_POST_VARS
| From: | Bruin, Bolke de | Date: | Thu, 24 Aug 2000 13:42:45 +0000 |
| Subject: | RE: [PHP] $HTTP_POST_VARS | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-13403@lists.php.net to get a copy of this message | ||
and before I forget it:
did you enable "enable_track_vars" in your PHP.INI?
cheerz
Bolke
-----Oorspronkelijk bericht-----
Van: Brian Rue [mailto:dwjw@quixnet.net]
Verzonden: Thursday, August 24, 2000 12:02 AM
Aan: 'php-general@lists.php.net'
Onderwerp: [PHP] $HTTP_POST_VARS
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net