mercredi 3 septembre 2014

prevent user to go back to the php form after submitting it


Vote count:

0




I have 2 php forms. If user submit the first form, he should be redirected to the second form.


Now, my problem is that I would like to prevent users from coming back to the first form after submitting it. For example, now when I submit the first form, it will redirect me to the 2nd form, but if I press the back button in browser, I can see all the data I inserted in the first form.


(I used header ('Location: form2.php') at the end of my php file to redirect to 2nd form and it works properly.I searched a lot about preventing from resubmitting the form but still I could not solve my problem. I really appreciate if someone could help me to know how can I avoid this?



asked 40 secs ago

mOna

74






prevent user to go back to the php form after submitting it

Aucun commentaire:

Enregistrer un commentaire