Welcome Guest, Not a member yet? Register   Sign In
prevent re-inserting data.
#5

[eluser]Otemu[/eluser]
Hi,

I use the method TheFuzzy0ne said and I haven't had any issues.
The main thing is that you have validation checks, for instance if a user registers to your site and refreshes the page, then your validation should check if a user exists before it does any insert. Now instead of getting the same record inserted into the database the user will get an error.

Another method is to use sessions to store unique id for each form and then process if the id matches.


Messages In This Thread
prevent re-inserting data. - by El Forum - 03-08-2013, 05:47 AM
prevent re-inserting data. - by El Forum - 03-08-2013, 05:51 AM
prevent re-inserting data. - by El Forum - 03-08-2013, 06:09 AM
prevent re-inserting data. - by El Forum - 03-08-2013, 06:57 AM
prevent re-inserting data. - by El Forum - 03-08-2013, 08:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB