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 #172648 is a reply to message #172646] Wed, 23 February 2011 09:41 Go to previous messageGo to previous message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma:
Senior Member
On 23-02-11 09:47, Vincenzo Scarpa wrote:
> 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
>
>
>

Google for: php hash in url

First link, gives explanation
http://stackoverflow.com/questions/940905/can-php-read-the-hash-portion-of- the-url

--
Luuk
[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: Fri Sep 20 10:34:23 GMT 2024

Total time taken to generate the page: 0.05798 seconds