FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » browser url with #...
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: browser url with #... [message #173185 is a reply to message #172658] Sat, 26 March 2011 17:24 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Twayne wrote:

> Vincenzo Scarpa typed:
> :: with this code I get the address of the browser:
> :: $url =
> :: 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
> ::
> :: but with this address:
> :: http://www.example.com/example.php#one
> ::
> :: the code above does not work ($url contains only 'http://
> :: www.example.com/example.php').
> ::
> :: How come? :(
> ::
> :: Thanks
> :: Vincenzo
>
> # indicates a bookmark in the document at the URL.

It does not.

> If there is no such bookmark, then it cannot go there and fails.

Bookmarks have nothing to do with this; that misconception aside,
you are correct, but you are missing the point.

Please <http://netmeister.org/news/learn2quote.html>.


PointedEars
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$8300dec7(at)news(dot)demon(dot)co(dot)uk> (2004)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to call external php script from html?
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 09:08:33 GMT 2024

Total time taken to generate the page: 0.04136 seconds