Form submit on refresh of Browser |
[eluser]Sudz[/eluser]
Hi buddy, When i click submit button in my form, all form values are posted . but when i click on refresh button of browser then also form is submitted. I want to avoid form submission on clicking refresh button of browser. How can i do this? Thanks
[eluser]Nick_MyShuitings[/eluser]
http://stackoverflow.com/questions/66539...ng-my-form The way I do it, is all my forms post to controller/submit , which does the magic the form requires, and then redirects to another function to show the view. That's kinda the way detailed in the link above. If there is a better way I'm hoping someone from the forum will tell us
[eluser]troy_mccormick[/eluser]
[quote author="Nick_MyShuitings" date="1305052766"]http://stackoverflow.com/questions/665399/how-do-i-stop-the-back-and-refresh-buttons-from-resubmitting-my-form The way I do it, is all my forms post to controller/submit , which does the magic the form requires, and then redirects to another function to show the view. That's kinda the way detailed in the link above. If there is a better way I'm hoping someone from the forum will tell us [/quote] Exactly how I do it as well. :-)
|
Welcome Guest, Not a member yet? Register Sign In |