As i would like to determine whether theres a # in the link, and you only can do this in Javascript, I would like to transfer a JS variable to PHP.
So if i have:
if(location.hash){ var hash = location.hash; the hash var needs to be turned in to a php $hash var..
I also tried if not possible, sending in post the variable,
$.post('photo.php?mode=grab', { hash: hash }, function(result) { // ..but then i got stuck, how should i transfer to php var from here?