- Joined
- Dec 26, 2008
- Messages
- 781
- Reaction score
- 226
Well the website I'm working on uses a hash value in the URL to determine the page that it's on, so it would be something like: yoursite.com/#home
I've been searching and discovered that the hash value of the URL is only sent to the client, not the server; so I would have to get it through javascript using window.location.hash. My problem is transferring that to PHP. The only way that I've thought of is saving it to a cookie and then having the PHP read that cookie. Can anyone think of a better way?
I've been searching and discovered that the hash value of the URL is only sent to the client, not the server; so I would have to get it through javascript using window.location.hash. My problem is transferring that to PHP. The only way that I've thought of is saving it to a cookie and then having the PHP read that cookie. Can anyone think of a better way?

