title: PHP Form Redirect
body: <p>I need a simple way to redirect, after a form submits, to a thank you page. </p>
  
  <p>PHP:</p>
  
  <pre><code>&lt;?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!");
  echo "Thank You!"; 
  ?&gt;
  </code></pre>
  
  <p>My HTML, which I do not want changed:</p>
  
  <pre><code>&lt;form action="mail.php" method="POST" autocomplete="on"&gt;&lt;/br&gt;
      &lt;p&gt;Name:&lt;/p&gt;&lt;input type="text" name="Name"  size="20"&gt;&lt;/br&gt;
      &lt;p&gt;Email:&lt;/p&gt;&lt;input type="text" name="email"  size="20"&gt;&lt;/br&gt;
      &lt;p&gt;Message:&lt;/p&gt;
      &lt;textarea id="styled" type="textarea" name="message" form="input&gt;&lt;/textarea&gt;&lt;/br&gt;
      &lt;pre&gt;&lt;input type="submit" value="Send"&gt;&lt;input type="reset" value="Clear"&gt;&lt;/pre&gt;
  &lt;/form&gt;
  </code></pre>