Welcome Guest, Not a member yet? Register   Sign In
submitting a form for preview in one step + unsetting post data to prevent second submitting with reloading
#2

[eluser]adamp1[/eluser]
I don't think you can unset POST variables from the users HTTP request. You can unset them on your script but the user will still be able to submit them again.

The best method I can think of is to put a hidden field in the form which has a unique identifier in it (one which the user cannot guess the next increment but that also can be decoded). Then on your update page decode it and check if that ID is in the table. (That's if the user is adding a new field, if there are updating then it really doesn't matter does it if they resubmit the same data?)


Messages In This Thread
submitting a form for preview in one step + unsetting post data to prevent second submitting with reloading - by El Forum - 12-30-2007, 09:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB