# in url getting ignored in php 5.2 [duplicate]
I have php 5.2. The # in the URL is getting ignored by PHP. Anyone knows why.
For example if the url is
=">http://localhost?a=b#=
I am only seeing a=b
The URL fragment is not sent to the server by the browser. If you want to include an actual "#" in the query string then you need to encode it as %23
first.
The #
character has a special meaning in URLs.
http://localhost?a=b#test
causes the browser to load http://localhost?a=b
and jump to the element with the id
or name
of "test". That part is never sent to the server.
精彩评论