Welcome Guest, Not a member yet? Register   Sign In
Form submit on refresh of Browser
#1

[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
#2

[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 Smile
#3

[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 Smile[/quote]

Exactly how I do it as well. :-)
#4

[eluser]Sudz[/eluser]
Thanx buddy,

If any other solution please post.




Theme © iAndrew 2016 - Forum software by © MyBB