![]() |
Form submit on refresh of Browser - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Form submit on refresh of Browser (/showthread.php?tid=41519) |
Form submit on refresh of Browser - El Forum - 05-10-2011 [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 Form submit on refresh of Browser - El Forum - 05-10-2011 [eluser]Nick_MyShuitings[/eluser] 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 ![]() Form submit on refresh of Browser - El Forum - 05-10-2011 [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 ![]() Exactly how I do it as well. :-) Form submit on refresh of Browser - El Forum - 05-10-2011 [eluser]Sudz[/eluser] Thanx buddy, If any other solution please post. |