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
#3

[eluser]adamp1[/eluser]
I just thought of another way this could be done. You could store a session variable of the progress of the form submission. Then when they view the preview you set a flag saying they they have already submitted the data. Before adding the data to the data to the database you check if the flag exists, if it doesn't don't add the data.

I don't know if the session variable would be restored to its previous state on a refresh or not, without having a try.


Messages In This Thread
submitting a form for preview in one step + unsetting post data to prevent second submitting with reloading - by El Forum - 01-10-2008, 05:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB