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 #172658 is a reply to message #172646] Thu, 24 February 2011 01:56 Go to previous messageGo to previous message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma:
Senior Member
In news:005f27a6-38e1-49f4-bd45-2529005aacf4(at)y3g2000vbh(dot)googlegroups(dot)com,
Vincenzo Scarpa <vincenzoscarpa613(at)gmail(dot)com> typed:
:: Hi,
::
:: 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. If there is no such
bookmark, then it cannot go there and fails.
[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: Wed Nov 27 04:21:52 GMT 2024

Total time taken to generate the page: 0.04639 seconds