I have 2 PHP forms. If a user submits the first form he should be redirected to the second form.
I would like to prevent users from going back to the first form after submitting it. As of now, after I submit the first form, it will redirect me to the second form but if I press the back button in the 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 second form and it works properly. I searched a lot about preventing from resubmitting the form but still I could not solve my problem.