|
Wouldn't I have the same problem using PHP session variables to do this as I am having using javascript and cookies?
Using a session variable would last the entire session just like my cookies are and if I cleared them upon successful form submission (which I can also do with Javascript), then the user won't be able to press back from that point. For many forms, this isn't a problem, but for searches this sucks because if the user doesn't find what they are looking for and press back, they would have to re-enter all their search criteria (there are about 20 fields for searching in one of the forms) instead of just changing one or two things.
|