When using the $_GET[] in php, it searches for a variable e.g ?id=value
Is there a way to call the #value instead?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, because the hash part of the url is client-side only and is not sent to the server.
When you enter an URL such as
http://server.com/dir/file.php?a=1#somethingin your browser’s URL textbox, the browser opens a connection to theserver.comand then issues a HTTP commandGET /dir/file.php?a=1 HTTP/1.1. This is the only data sent to the server.Hence, the server never gets the
#somethingpart, and this means there is no script on server side you could write to read that value.Similar question explained here: How to get Url Hash (#) from server side