Hi,
If I have submitted a form and I want to refresh the form I don’t want to get the warning: “you are about to resubmitting the form”. I just want to reload the form without resubmitting. How can I do that ?
Thank You!
Hi,
If I have submitted a form and I want to refresh the form I don’t want to get the warning: “you are about to resubmitting the form”. I just want to reload the form without resubmitting. How can I do that ?
Thank You!
You should re-think how you are designing the your site. Redirect to a different page, instead of saying on the same page.
There are some crazy ways to do what you want… but the best way is to re-think the flow of your application.
Or use Ajax to refresh to submit the data you want without a page submit, so then you can refresh the page without causing that message to pop up. .
After you do all the validation for the php processing of the form use the header() to direct back to the form page. That method will at least get rid of the issue you are specifically talking about when hitting the refresh button. It doesn’t handle the use of the back button though, that will still cause the issue at hand.
I personally love the AJAX form submission. It’s fast and easy for the client to know what’s going on and you can clear the form once the callback gives you the answer you need to say validation has passed.