Welcome Guest, Not a member yet? Register   Sign In
How to disable refresh option in my php page?
#2

[eluser]mddd[/eluser]
The simple way is to use a token which can be used only once.
When you generate the page, you put in a hidden form field containing some random number. The number is submitted along with the rest of the form. You store that number somewhere. If you get another request you check to see if the number is not the same as any of the ones you recently received.
That way you prevent double entry of the data.


Messages In This Thread
How to disable refresh option in my php page? - by El Forum - 08-10-2010, 12:38 AM
How to disable refresh option in my php page? - by El Forum - 08-10-2010, 01:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB