Possible Duplicate:
Can PHP read the hash portion of the URL?
I’ve a gallery site.
The actual selected album is marked in the URL with a hashtag.
Example with the album HDR:
http://www.example.com/gallery#HDR
Now i want to split the URL with parse_url. But there i need the URL in a String, WITH the hashtag. So it doesn’t work with $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']…
The only way i know to reach the URL is with JavaScript.
But how can i convert a JavaScript variable in a PHP variable?
You cannot convert a javascript variable to php, because php is server sided and js client sided.
No variable in $_SERVER contains the “#xxx” part.
Check: Can I read the hash portion of the URL on my server-side application (PHP, Ruby, Python, etc.)?