Re: $_POST vs $_REQUEST

From: Date: Mon, 22 Feb 2010 21:09:38 +0000
Subject: Re: $_POST vs $_REQUEST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-302266@lists.php.net to get a copy of this message
> I have Forms that I submit for processing. I have seen examples of people using either $_POST > or $_REQUEST. > Look at this example: <form action="page.php?foo=bar"> <input type="hidden" "name="foo" value="pub"> </form> Now what do you thing $_REQUEST will return? You had better not even think. Just use $_POST or $_GET as you _know_ what they will return. Don't forget, there might even be a cookie with the name "foo". -- Dotan Cohen http://bido.com http://what-is-what.com Please CC me if you want to be sure that I read your message. I do not read all list mail.

« previous php.general (#302266) next »