Re: Newbie $HTTP_GET_VARS and $HTTP_POST_VARS confusion

From: Date: Fri, 18 Apr 2003 01:21:29 +0000
Subject: Re: Newbie $HTTP_GET_VARS and $HTTP_POST_VARS confusion
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144358@lists.php.net to get a copy of this message
Ken Tozier wrote:
$FormDict = $HTTP_GET_VARS; if ($HTTP_POST_VARS['fs0']) { $FormDict = $HTTP_POST_VARS; } I assume the above is determining which method (get or post) was used to submit the form data, but what I don't get is where the heck is the "fs0" in "$HTTP_POST_VARS" coming from.
Off the top of my head ... #1 The script checks to see if there are any POST vars by checking if $_POST['fs0'] exists. I am assuming there is an else clause that does something different if no POST vars exists? #2 fs0 is probably the name if one of the form input fields. Did you check the HTML page that contains the form to see if it has any input fields (text, textaream radio buttons, etc...) with that name? That's my guess :) Jean-Christian Imbeault

« previous php.general (#144358) next »