joePHP Posted May 16, 2008 Share Posted May 16, 2008 Hi, I have an HTML form that asks the user to enter his information. After entering his information he submits the form. My PHP code validates the users information and if all’s good it emails it to me. The problem that I’m having is that every time the user refreshes his browser I get the same email sent to me over and over. Any suggestions? Thanks, Joe Link to comment https://forums.phpfreaks.com/topic/105971-php-refresh-trouble/ Share on other sites More sharing options...
jacksonmj Posted May 16, 2008 Share Posted May 16, 2008 Would a header("Location:./anypage.html") in the PHP code work? That way, when the new page that the user gets sent to is refreshed, the form data does not get resubmitted. Link to comment https://forums.phpfreaks.com/topic/105971-php-refresh-trouble/#findComment-543082 Share on other sites More sharing options...
stylusrose Posted May 16, 2008 Share Posted May 16, 2008 insert a re-direct code on your php page. otherwise everytime the user refreshes, it will refresh your php validation. Link to comment https://forums.phpfreaks.com/topic/105971-php-refresh-trouble/#findComment-543084 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.