PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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:
If you can pass the url of the [page 2 pages ago] to your script via a cookie or query string value, you can redirect the browser to that address like this: