On Thursday 20 September 2001 21:36, Wee Chua wrote:
Hi all,
I know how to forward a page with PHP, but what if the page I want
to forward is the previous page or last page. In javascript, the
code is like javascript:historygo(-1). The reason why I want to go
back to previous page is because I don't want to lose any
information on previous page. Can anyone help? Thank you.
Try with this:
html
body
script language=javascript
history.go(-2)
/script
/body
/html
I've never tried it, but as I think the browser should go back to the
previous page (actually when this page is loaded it is located on
-2nd position).
Arpi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]