note 85816 added to reserved.variables.get
| From: | hmaloney at contactpoint dot com dot au | Date: | Thu, 18 Sep 2008 23:38:08 +0000 |
| Subject: | note 85816 added to reserved.variables.get | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144530@lists.php.net to get a copy of this message | ||
This code is really useful for reproducing the values in the $_GET variable, and attaching that to a
$_SERVER['PHP_SELF'] value when building the action value of a form tag, so that you
don't lose any other values that could have been passed:
foreach ($_GET as $key => $value) {
if ($key != "C") { // ignore this particular $_GET value
$querystring .= $key."=".$value;
}
}
----
Server IP: 117.104.160.194
Probable Submitter: 203.87.87.30
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.get.php
Edit -- https://master.php.net/note/edit/85816
Del: integrated -- https://master.php.net/note/delete/85816/integrated
Del: useless -- https://master.php.net/note/delete/85816/useless
Del: bad code -- https://master.php.net/note/delete/85816/bad+code
Del: spam -- https://master.php.net/note/delete/85816/spam
Del: non-english -- https://master.php.net/note/delete/85816/non-english
Del: in docs -- https://master.php.net/note/delete/85816/in+docs
Del: other reasons-- https://master.php.net/note/delete/85816
Reject -- https://master.php.net/note/reject/85816
Search -- https://master.php.net/manage/user-notes.php