CodeIgniter Forums
Reload Problem, user tend to submit data twice - 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: Reload Problem, user tend to submit data twice (/showthread.php?tid=3904)

Pages: 1 2 3


Reload Problem, user tend to submit data twice - El Forum - 04-29-2008

[eluser]Unknown[/eluser]
I agree with negligence. Simpler is better. I was having problems with cookies because the I was not doing a page reload. Using a header redirect sorted it for me.


Reload Problem, user tend to submit data twice - El Forum - 09-23-2009

[eluser]Carlos G[/eluser]
so, wich is a good solution for the resend of the POST data when usin the F5, because the simple redirect it's not enough, i'm having problems where fool users are using the back button and F5, this is making weird data and users fools and unhappy with the reports Smile

So is there a good technique to avoid this simple situation??, the rails or asp users wath kind of technique are using???

Thanx in advance


Reload Problem, user tend to submit data twice - El Forum - 09-24-2009

[eluser]Carlos G[/eluser]
the only way of avoid this problem that i have found is use the redirection and in my views always use:

Code:
< b o d y   o n l o a d =" [removed] h i s t o r y. g o ( 1 ) ; "  o n u n l o a d = " [removed] h i s t o r y . g o ( 1 ) ; " >

so, with this the backbutton behaviour is disabled and i can be sure that all is good :-)

Good Luck!