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? 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. 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 Link to comment https://forums.phpfreaks.com/topic/188819-eliminate-post-values/#findComment-996930 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.