Re: HTTP_POST_VARS
| From: | (Richard Lynch) | Date: | Fri, 07 Jul 2000 23:55:06 +0000 |
| Subject: | Re: HTTP_POST_VARS | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5484@lists.php.net to get a copy of this message | ||
In article <1392.194.102.177.23.962904754@mail.mirabilis.ro>,
dragos@mirabilis.ro (Dragos Roua) wrote:
> Hi,
>
> I'm forced to use a php 3.0.14 version and when I try to traverse
> $HTTP_POST_VARS, i get the error: vatriable passed to reset is not an array or
> object... is this the correct behaviour? do I have to pass the variables from
> one page to another in a different way? (right now I reconstruct the initial
> form from $HTTP_POST_VARS)
You might have track_vars turned off (see php.ini) but other than that, it
should work.
$HTTP_POST_VARS is only set if a FORM has been posted though.
You can use if (isset($HTTP_POST_VARS)) to check that the page in
question is in response to a POST.
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)