note 92891 added to reserved.variables.request
| From: | smjg at iname dot com | Date: | Thu, 13 Aug 2009 10:56:41 +0000 |
| Subject: | note 92891 added to reserved.variables.request | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159435@lists.php.net to get a copy of this message | ||
Selecting $_GET or $_POST depending on the request method isn't a general solution, since
it's possible for an HTTP request to have both posted content and a query string in the URI.
If you want to allow for this possibility, you can use
<?php
$req = array_merge($_GET, $_POST);
?>
or vice versa, depending on which you want to be used in the event of a clash between them.
----
Server IP: 64.71.164.2
Probable Submitter: 87.194.178.55
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.request.php
Edit -- https://master.php.net/note/edit/92891
Del: integrated -- https://master.php.net/note/delete/92891/integrated
Del: useless -- https://master.php.net/note/delete/92891/useless
Del: bad code -- https://master.php.net/note/delete/92891/bad+code
Del: spam -- https://master.php.net/note/delete/92891/spam
Del: non-english -- https://master.php.net/note/delete/92891/non-english
Del: in docs -- https://master.php.net/note/delete/92891/in+docs
Del: other reasons-- https://master.php.net/note/delete/92891
Reject -- https://master.php.net/note/reject/92891
Search -- https://master.php.net/manage/user-notes.php