Re: GET, POST, REQUEST

From: Date: Tue, 20 Jun 2006 01:18:24 +0000
Subject: Re: GET, POST, REQUEST
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-238361@lists.php.net to get a copy of this message
On Sat, June 17, 2006 1:25 pm, Ben Ramsey wrote: > Using $_REQUEST is similar to using register_globals. You simply > cannot > trust the origin of the data. It's possible that a variable by the > name > of "foo" exists as a cookie, POST value, and GET value. If you use > $_REQUEST, you cannot be assured that the value you are getting is > from > the scope you intend to retrieve it. But it may well be that your script just doesn't CARE where the data came from. GET, POST, COOKIE, whatever. If somebody is using my pagination script, and wants links or buttons or whatever, I don't really give a damn where $page comes from. It has to be a positive int, but I don't care how they code the user interface. $_REQUEST is very handy for that. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#238361) next »