chandler Posted May 12, 2010 Share Posted May 12, 2010 Hi I have a php form once submitted a confirmation is displayed on the same page to the user,( "Thank you for your comments" ) how can I have this on a timer so after a few seconds the form will reload. echo $success_sent_msg; ?> <!-- Message sent! (change the text below as you wish)--> <div style="text-align:left;"> <p>Thank you <b><?=$name;?></b>, your quote will be sent to <?=$email;?>.</p> </div> <!--End Message Sent--> <?php } } if(!isset($_POST['send']) || $error != '') { ?> <!--Error Message--> <?=$error;?> Quote Link to comment Share on other sites More sharing options...
andrewgauger Posted May 13, 2010 Share Posted May 13, 2010 <meta http-equiv="refresh" content="5;url=yourpageurl.php"> so after 5 seconds the browser will refresh. This goes between: <head> and </head> Quote Link to comment 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.