AndyNJ
01-29-2007, 10:51 PM
I have been working on a web application that will run as an internal only tool for my radio station. All of the pages are rendered by PHP and the entire thing is very form heavy. The one real problem that I'm having is that if a user navigates away from a page and then presses the back button anything they have entered into the form on that page is gone. How can I make it so that their input stays there? I'd prefer not to do this using PHP and would rather use something client side if possible.
I was able to put together a script that will save form input into cookies, but I cannot figure out how to make it not load the input every time that page is visited by the user in the future. I would much rather prefer that if the user is navigating to a new instance of that page it be loaded blank and only load saved info if they user is pressing the back/forward buttons on the browser to return to the page.
As a user of other sites, this is always something I took for granted and had never realized that it wasn't automatic until I started this project.
Help!
I was able to put together a script that will save form input into cookies, but I cannot figure out how to make it not load the input every time that page is visited by the user in the future. I would much rather prefer that if the user is navigating to a new instance of that page it be loaded blank and only load saved info if they user is pressing the back/forward buttons on the browser to return to the page.
As a user of other sites, this is always something I took for granted and had never realized that it wasn't automatic until I started this project.
Help!