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 Quote Link to comment https://forums.phpfreaks.com/topic/279268-stop-form-submittion-when-reload-button-is-pressed/ Share on other sites More sharing options...
Solution mac_gyver Posted June 17, 2013 Solution 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. Quote 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 (edited) with the header() function??? Edited June 17, 2013 by simeonC Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.