|Preserving form data and history.back()|
| 4:31 pm on May 6, 2003 (gmt 0)|
An obvious solution would be to pass all the form variables to the link and just do it via PHP. But I feel like just moving back should do the trick.
It doesn't appear that any caching is going on, but perhaps I just am looking in the wrong place. Anyone haev any idea or tips on preserving form data and using history.back()?
Incidentally, you can test out the script here:
<sorry, no test URLs>
[edited by: tedster at 6:31 pm (utc) on May 6, 2003]
| 4:39 pm on May 6, 2003 (gmt 0)|
| 5:30 pm on May 6, 2003 (gmt 0)|
Thanks for the reply... I don't need the parent window to go back, the form is contained in new_window. I tried the syntax you used minus the 'opener' portion, but IE just ignores it when you click the link. It acts like it went back, but the form does not reappear. Very strange.
| 6:30 pm on May 6, 2003 (gmt 0)|
Just FYI, I don't think IE liked the fact that the original form and the processing script were the same. I put the form in a separate file and now using back() works fine.
| 10:57 pm on May 6, 2003 (gmt 0)|
I would skip the "back" idea completely. Why not display the form again, with all the data entered in already, and just an error message telling them what went wrong?
Don't trust every browser to remember the form data on back-click...