Skip to content Skip to sidebar Skip to footer

Mozilla Firefox Form Values Reset On History.back

I'm writing a PHP script. I've got a form uses post method and action to another page. If an error occurs, I show a message on that target page, and let the user go back via a link

Solution 1:

You could, and I know it's annoying, capture your POST data and turn it into SESSION variables, then repopulate input fields on browser back.

Alternatively, You can submit the form to an iframe and process, or use ajax to process and depending on the result, trigger a new page load or not.

Post a Comment for "Mozilla Firefox Form Values Reset On History.back"