Re: browser url with #... [message #172655 is a reply to message #172650] |
Wed, 23 February 2011 14:49 |
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
|
|
|