0

Possible Duplicate:
Can PHP read the hash portion of the URL?

Is it possible to access the hash portion of a URL in PHP?

http://test.com/#thisisthehash

In javascript is can be accessed with window.location.hash

Community
  • 1
  • 1
alt
  • 13,357
  • 19
  • 80
  • 120

2 Answers2

1

No this is not possible. Just at client side is that possible.

The HTTP protocol does not transfer this Information, so the server cannot guess it.

rekire
  • 47,260
  • 30
  • 167
  • 264
0

No. Browser won't send it to the server. A dirty workaround would be to send the fragment to the server via an ajax call or by some other way.

AKS
  • 4,618
  • 2
  • 29
  • 48