title: How do I redirect to an HTML page after submitting a PHP email form?
body: <p>Here is my code:</p>
  
  <pre><code>&lt;?php
  $name = $_POST['name'];
  $email = $_POST['email'];
  $subject = $_POST['subject'];
  $message = $_POST['message'];
  $formcontent = "From: $name \n Email: $email \n Subject: $subject \n Message: $message";
  $recipient = "hunter@dreaminginhd.com";
  $subject = "Contact Form";
  $mailheader = "From: $email \r\n";
  mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
  ?&gt;
  </code></pre>
  
  <p>I just need to know how to redirect to an HTML page after clicking submit and to make sure that the script with send the email. Any help will be greatly appreciated! </p>