Re: "fragment" component of a URL

From: Date: Wed, 26 Jul 2000 09:24:52 +0000
Subject: Re: "fragment" component of a URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8228@lists.php.net to get a copy of this message
The webserver never recieves #myfragment, it's simply an internal bookmark that the browser jumps to once the file is loaded. The server knows nothing about it. and you'll need to use document.location in js if you want to get it at all. -Gfunk [-= Visit my website! http://www.gfunk007.com/ - ICQ:74477509 =-] ----- Original Message ----- From: Angel Fenoy <afenoy@teleline.es> To: Daniel Convissor <danielc@analysisandsolutions.com>; <php-general@lists.php.net> Sent: Wednesday, July 26, 2000 7:22 PM Subject: Re: [PHP] "fragment" component of a URL > > Hello, Daniel & list. > > You are near to understand my problem now: > $REQUEST_URI does NOT contain "fragment" part of present URI. > ^^^ > Try this script: > ----------myscript.php------------ > <? echo $REQUEST_URI; ?> > --------End of myscript.php------- > > Call it WITH THIS SYNTAX: > > http://yourhost/yourpath/myscript.php?myvar1=1&myvar2=2#myfragment > > The result is: > /yourpath/myscript.php?myvar1=1&myvar2=2 > > Component '#myfragment' of URI has disappeared!!! > > It happens to me only?? > Can somebody see in screen '#myfragment' when execute the script?? > > This is what I need. A variable or function like $REQUEST_URI but that > also contains "fragment" part of URI. > > Thanks > Angel > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#8228) next »