How to go back 2 pages
Posted: Wed Nov 15, 2006 10:25 pm
Ok, I've got a page that allows the user to enter his information, username and password. And after a successfull insertion to a data base I would like to be able to go back 2 pages. I was wondering if PHP had a function to do this. I know JavaScript has history.back and I tried to use it through an echo statement like such:
but it doesn't seem to work.
Thanks for your help.
Code: Select all
echo '<script language="JavaScript" type="text/javascript">history.back(2)</script>';Thanks for your help.