RE: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists
| From: | Jay Blanchard | Date: | Mon, 07 Jul 2008 15:35:10 +0000 |
| Subject: | RE: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276369@lists.php.net to get a copy of this message | ||
[snip]
When you use register_globals it extracts the vars from get, post,
cookie and session, or used to. But, I don't think session vars are in
$_REQUEST.
[/snip]
$_REQUEST is no different than $_POST or $_GET from a security
standpoint. And using register_globals did not carry a security risk as
long as the programmer did every responsible thing with regard to that
input.
$_GET['foo']
$_POST['foo']
$_REQUEST['foo']
$foo
It is all a matter of how you handle foo, the rest is semantics.