So sprach Joseph Blythe am Wed, Apr 18, 2001 at 10:48:14AM +0930:
> Hey,
>
> Why doesn't HTTP_POST_VARS work inside functions?
>
> ---somefile.php - forms action ---
>
> function foo() {
> reset($HTTP_POST_VARS);
Because this particular HTTP_POST_VARS is not the HTTP_POST_VARS you have
outside the function. Either you pass it along as a parameter, or you do:
global $HTTP_POST_VARS;
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.digitalprojects.com | http://www.iso-top.de
iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 1 day 10 hours 18 minutes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]