Posted by John on 11/14/05 10:29
I have a page that requests an index number from the user using a
form. The submit then calls itself and a php lookup table determines
the web page required and then does a jump.
echo "<script>window.location.href='$a'</script>";
Details of the page are passed in the address line and pulled off with
POST. All works fine no problems,
However if the user hits the back button the jump is made again and
the page they are on simply reloads, as you would expect.
I tried interrogating javascript history to see where I have come from
but cannot get the location without jumping to it. If I came from
anywhere except current page then don't jump would logically seem to
work if I could do it.
Also thought about sessions but that seems like a sledgehammer to
crack a nut (also I have not had to use sessions yet so they are
untried for me).
Any other solutions or ideas gratefully accepted.
--
John
[Back to original message]
|