Re: Looking for a reasonable explanation as to why $_REQUEST exists
| From: | tedd | Date: | Mon, 07 Jul 2008 20:28:29 +0000 |
| Subject: | Re: Looking for a reasonable explanation as to why $_REQUEST exists | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276416@lists.php.net to get a copy of this message | ||
At 3:00 PM -0400 7/7/08, Bastien Koert wrote:
Where I see this used a lot is in searching/pagination type scenarios...for the submission, the form is POSTED and then on subsequent pages, the data is stored in the url and posted back to the same script. Using $_REQUEST means that you won't really care about whether the data is POST or GET. -- BastienYes, but one of the problems with using REQUEST is that if COOKIES are involved, then those values will take precedence over the same variable found in POST or GET (i.e., PGC). Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com