"fragment" component of a URL

From: Date: Wed, 26 Jul 2000 01:05:01 +0000
Subject: "fragment" component of a URL
Groups: php.general 
Request: Send a blank email to php-general+get-8183@lists.php.net to get a copy of this message
Hi. Any variable or function can show the ENTIRE url from which a php code is called? I need the value of "fragment" component of the url, the 'named anchor'. In this sample: <a href="myscript.php?do=longlist#item1234">List</a> the "fragment" component of the url is 'item1234'. Is it possible, IN myscript.php, to know if the url FROM WHICH myscript.php was called contained any "fragment" ? And the value of that "fragment" ? I tried $QUERY_STRING, $REQUEST_URI, $HTTP_GET_VARS, $HTTP_SERVER_VARS, getallheaders(), phpinfo() and others with no success. Only value 'longlist' is shown, not 'item1234'. I know that the function parse_url() shows the "fragment" of a well-known string, but what I need is the "fragment" (if it is set) of the URL what called my code. I need to know if this is feasible in php. Thanks in advance and sorry for my english. Angel.

« previous php.general (#8183) next »