Hi
I have this php code so when you click submit it goes to a thank you page, but what i actually want is it to say thank you and go back to the index page automatically. Does anyone know how to do this. Here's the code
<?php
echo "
Thank you, $_POST[name], Your message has been sent. "; //start building the mail string
$msg = "Name; $_POST[name]\n";
$msg .= "E-Mail: $_POST\n";
$msg .= "Message: $_POST\n";
$recipient = "kreativ108@gmail.com";
$subject = "comment form";
$mailheaders = "From: My Website \n";
$mailheaders .= "Reply-to: $_POST";
//send the mail
mail($recipient, $subject, $msg, $mailheaders);
?>