Re: [PHP] $_POST vs $_REQUEST

[email protected] (Dotan Cohen)
Newsgroups php.general
Message-ID <[email protected]>
> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.