I have a PHP data entry page and redirecting to the new page after data inserted successfully. But the user can go back using the Browser back button and click on the ‘Save’ button again. Is there any way I can prevent this kind of problem? Please suggest. Thank you.
I am using the following code to redirect.
header ("location:Redirect.php?ref=10");
Yes, you can store a variable in their session whenever they click the button then use this to show/hide the button accordingly by checking that session variable. Also if it’s set then do not allow posting/processing of the form.