dadamssg Posted January 17, 2010 Share Posted January 17, 2010 it seems like my post values are still being held from my form. So when i refresh the page, even the the form fields are blank, the data gets entered in again. How eliminate the post values? Quote Link to comment https://forums.phpfreaks.com/topic/188819-eliminate-post-values/ Share on other sites More sharing options...
wildteen88 Posted January 17, 2010 Share Posted January 17, 2010 I'm guessing you are inserting the values into a database? Once you have inserted your data into the database you'll want to preform a redirect eg: header('Location: somepage.php') Otherwise your browser will resend what you just entered in your form when you refresh the page. Quote Link to comment https://forums.phpfreaks.com/topic/188819-eliminate-post-values/#findComment-996840 Share on other sites More sharing options...
dadamssg Posted January 18, 2010 Author Share Posted January 18, 2010 yeah im inserting them into a database but then redirecting to the same page. So if they refresh that page...it gets submitted again. Its a comment by the way...the users are submitting comments Quote Link to comment https://forums.phpfreaks.com/topic/188819-eliminate-post-values/#findComment-996930 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.