I’ve got a form on a php page and once it is submited, processed and the user goes to another page and then goes back to the page where the form resides (by hitting the “Back” button on the browser) or refreshing the page, the browser tells the user that the page requested is outdated and prompts for downloading a fresh copy of the page and resubmitting the info because the browser does not cache sensitive information…something like that.The form’s action attribute is set to the same page it is on.So how is this done-refreshing the page without this browser behaviour?
Share
After submitting the form, you should clear the $_POST data by doing a redirect, e.g.
This will prevent that same data from being sent again, and is called Post/Redirect/Get