simeonC Posted June 17, 2013 Share Posted June 17, 2013 I have a form with many if statements and else statements. It works fine. However when I press the refresh button the form is submitted once again every time i hit the refresh button. how do i stop this from happening Link to comment https://forums.phpfreaks.com/topic/279268-stop-form-submittion-when-reload-button-is-pressed/ Share on other sites More sharing options...
mac_gyver Posted June 17, 2013 Share Posted June 17, 2013 after you have finished processing the form data, redirect to the exact same URL of that page so that the browser won't continue to submit the post data when that URL is requested. Link to comment https://forums.phpfreaks.com/topic/279268-stop-form-submittion-when-reload-button-is-pressed/#findComment-1436433 Share on other sites More sharing options...
simeonC Posted June 17, 2013 Author Share Posted June 17, 2013 with the header() function??? Link to comment https://forums.phpfreaks.com/topic/279268-stop-form-submittion-when-reload-button-is-pressed/#findComment-1436435 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.