note 83200 added to reserved.variables.get
| From: | timberspine_AT_gmail_DOT_com at osu1 dot php dot net | Date: | Wed, 14 May 2008 23:38:15 +0000 |
| Subject: | note 83200 added to reserved.variables.get | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139397@lists.php.net to get a copy of this message | ||
Note that named anchors are not part of the query string and are never submitted by the browser to
the server.
Eg.
http://www.xyz-abc.kz/index.php?title=apocalypse.php#doom
echo $_GET['title'];
// returns "apocalypse.php" and NOT "apocalypse.php#doom"
you would be better off treating the named anchor as another query string variable like so:
http://www.xyz-abc.kz/index.php?title=apocalypse.php&na=doom
...and then retrieve it using something like this:
$url = $_GET['title']."#".$_GET['na'];
Hope this helps someone...
----
Server IP: 208.69.120.35
Probable Submitter: 74.85.3.146
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.get.php
Edit -- https://master.php.net/note/edit/83200
Del: integrated -- https://master.php.net/note/delete/83200/integrated
Del: useless -- https://master.php.net/note/delete/83200/useless
Del: bad code -- https://master.php.net/note/delete/83200/bad+code
Del: spam -- https://master.php.net/note/delete/83200/spam
Del: non-english -- https://master.php.net/note/delete/83200/non-english
Del: in docs -- https://master.php.net/note/delete/83200/in+docs
Del: other reasons-- https://master.php.net/note/delete/83200
Reject -- https://master.php.net/note/reject/83200
Search -- https://master.php.net/manage/user-notes.php