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
  • 12,593
  • 18
  • 75
  • 118

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
  • 46,262
  • 29
  • 163
  • 256
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,587
  • 2
  • 28
  • 48