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 #172655 is a reply to message #172650] Wed, 23 February 2011 14:49 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
sheldonlg wrote:

> On 2/23/2011 4:26 AM, Erwin Moller wrote:
>> If you want PHP to know about your #one, send it in the URL like this:
>>
>> http://www.example.com/example.php?myInfo=one
>>
>> Then from PHP, use superglobal $_GET to fetch the information:
>> $_GET["myInfo"] <-- will contain 'one'

ACK. But that is not the same.

>> You can also combine the Querystring info with a hash:
>>
>> http://www.example.com/example.php?myInfo=one#one

The `#' and everything that follows will _not_ reach the server. One would
need to URL-encode the `#' *in the request URI* (%23), which would defeat
its client-side purpose as delimiter for the fragment identifier.

> parse_url will get the stuff after the #.

No, it will not *here*, because there is nothing for it to get.

Please trim your quotes to the relevant minimum.


PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
[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 01:19:29 GMT 2024

Total time taken to generate the page: 0.04844 seconds