title: Contact Form Disappearing When Div is Set?
body: <p>Ok, so I've got a contact form:</p>
  
  <pre><code>&lt;?php
      if (isset($_POST['subtest'])) {
  
          $to = 'thomofawsome@gmail.com';
  
          $name = $_POST['firstname'];
          $lastName = $_POST['lastname'];
          $email = $_POST['email'];
          $city = $_POST['city'];
          $state = $_POST['state'];
          $zip = $_POST['zip'];
          $comments = $_POST['comments'];
  
          $Message = &lt;&lt;&lt; STOP
          From: $name $lastName
          Email: $email
          In: $city, $state, $zip
          Comments: $comments
  
  STOP;
  
          $subject = "Contact Request";
          $headers = 'From: system';
  
          if (mail($to, $subject, $Message, $headers)) {
              echo '&lt;div id="thanks"&gt;Mail sent&lt;/div&gt;';
              exit();
          }
          else {
              echo 'Mail Failed';
          }
      }
      ?&gt;
  
      &lt;form name="contact_form" action="" method="post"&gt;
          &lt;input type="hidden" name="subtest" value="true"&gt;
          First Name:&lt;br&gt;
          &lt;input type="text" name="firstname"&gt;
          &lt;br&gt;
          Last Name:&lt;br&gt;
          &lt;input type="text" name="lastname"&gt;
          &lt;br&gt;
          Email Address:&lt;br&gt;
          &lt;input type="text" name="email"&gt;
          &lt;br&gt;
          City:&lt;br&gt;
          &lt;input type="text" name="city"&gt;
          &lt;br&gt;
          State:&lt;br&gt;
          &lt;input type="text" name="state"&gt;
          &lt;br&gt;
          Zip:&lt;br&gt;
          &lt;input type="text" name="zip"&gt;
          &lt;br&gt;
          Comments:&lt;br&gt;
          &lt;textarea name="comments"&gt;&lt;/textarea&gt;
          &lt;br&gt;
  
          &lt;input id="submit" type="submit" name="submit" value="Send"&gt;
          &lt;br&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>The problem is I want the <code>echo mail sent</code> correctly formatted (with a green color, positioned correctly on the page, etc.). As you can see, I've put it in a div. When I submit the form though, I'm redirected back to the form page, except the entire form and footer disappear, and Mail sent appears on the bottom of the page (correctly formatted). </p>
  
  <p>Any ideas?</p>