Value of url-passed named anchor?

From: Date: Sun, 23 Jul 2000 21:12:37 +0000
Subject: Value of url-passed named anchor?
Groups: php.general 
Request: Send a blank email to php-general+get-7777@lists.php.net to get a copy of this message
I have this code: --------- myscript.php---------------- <? echo "<p>\n<a name=phpinfo></a>\n"; phpinfo(); echo "<p>\n<a name=vars></a>\n"; echo '$QUERY_STRING: ', $QUERY_STRING, '<br>'; echo '$REQUEST_URI: ', $REQUEST_URI, '<p>'; echo "<p>\n<a name=headers></a>\n"; $headers = getallheaders(); foreach($headers as $header => $value) { echo "$header: $value<br>"; } echo "<p>\n<a name=getenv></a>\n"; echo 'GETENV: ', getenv('QUERY_STRING'), '<br>'; echo 'GETENV: ', getenv('REQUEST_URI'), '<br>'; ?> ----End of myscript.php -------------- I call it with : myscript.php?var1=1&var2=2#getenv I can see $var1 and $var1 in some diferent parts of resultant code, and browser jumps to '#getenv', but i can't see any variable with value '#getenv' nor 'getenv' Exist any variable or function that return the value of a 'named anchor' explicity passed in a URL ?. (The "fragment" component of function parse_url()) Is this undocumented, a TODO, or a inpossible ? Thankyou in avance. Sorry for pseudoenglish. Angel.

« previous php.general (#7777) next »