>>>No! PHP is server-sided so has no concept whatsoever of the browser's
history.
D'OH! - I've read it before. Now I get it!
Thanks!
Larry
"Chris Hope" <bl*******@electrictoolbox.com> wrote in message
news:10**************@216.128.74.129...
Larry Kahm wrote:
Is there a PHP equivalent to the javascript statement history.go(-1)?
No! PHP is server-sided so has no concept whatsoever of the browser's
history.
The closest you can get to it is using $_SERVER['HTTP_REFERER'] but this is
extremely unreliable as it is often blocked by the user. The other problem
is that going "back" using this method is really forward as far as the
browser is concerned, so after using it the first time you would just keep
toggling back and forward between the same two pages.
--
Chris Hope - The Electric Toolbox -
http://www.electrictoolbox.com/