Re: HTTP_POST_VARS not and array when used in a function?

From: Date: Wed, 18 Apr 2001 08:27:22 +0000
Subject: Re: HTTP_POST_VARS not and array when used in a function?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49154@lists.php.net to get a copy of this message
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

« previous php.general (#49154) next »