PHP Form Redirect [duplicate]
问题 This question already has answers here : PHP Redirect to another page after form submit (6 answers) Closed 1 year ago . I need a simple way to redirect, after a form submits, to a thank you page. PHP: <?php $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $formcontent="From: $name \n Message: $message"; $recipient = "email@gmail.com"; $subject = "Contact Form"; $mailheader = "From: $email \r\n"; mail($recipient, $subject, $formcontent, $mailheader) or die("Error