title: PHP page not working, not entirely sure why
body: <p>Hello wonderful people of stackoverflow.
  <br>
  I'm a student in Sixth Form and am currently working on a website with a few added bits as my project but I've hit a wall with this one page.  It's a contact form which sends an e-mail when it's filled out and told to do so, using PHP.  The problem I'm having is that, instead of loading the page, it just loads...  well, nothing.
  <br>
  If any of you folks could lend me a hand and tell me where I've gone wrong then that'd be much appreciated! (Code's below)</p>
  
  <pre><code>&lt;?php
  
  if($_SERVER["REQUEST_METHOD"]=="POST") {
      $name = trim($_POST["name"]);
      $email = trim($_POST["email"]);
      $message = trim($_POST["message"]);
  
      if($name == ""){
          echo "You must enter something for your name.";
      }
  
      if($email == ""){
          echo "You must enter something for your e-mail.";
      }
  
      if($message == ""){
          echo "You must enter something for your message.";
      }
  
      foreach( $_POST as $value ){
          if( stripos($value,'Content-Type:' !== FALSE){
              echo "There's a problem with the information you entered.";
          }
      }
  
      if($_POST["ignore"] != ""){
          echo "Your form submission has an error.";
          exit;
      }
  
      require_once("inc/phpmailer/class.phpmailer.php");
      $mail = new PHPMailer();
  
      if(!$mail-&gt;ValidateAddress($email)){
          echo "You must specify a valid e-mail address.";
          exit;
      }
  
      $email_body = "";
      $email_body = $email_body . "Name: " . $name . "&lt;br&gt;";
      $email_body = $email_body . "Email: " . $email . "&lt;br&gt;";
      $email_body = $email_body . "Message: " . $message;
  
      $mail-&gt;SetFrom($email, $name);
      $address = &lt;MY EMAIL&gt;;
      $mail-&gt;AddAddress($address, "Steve John");
      $mail-&gt;Subject = "Contact Form Submission | ".$name;
      $mail-&gt;MasgHTML($email_body);
  
      if(!$mail-&gt;Send()){
          echo "There was a problem sending your message -- ".$mail-&gt;ErrorInfo;
          exit;
      }
  
      header("Location: contact.php?status=success");
      exit;
  }
  
  ?&gt;&lt;?php
  $pageTitle = "Stephen John Eyecare - Contact";
  $section = "contact";
  include('inc/head.php');
  ?&gt;
  
  &lt;!--IMAGE BANNER: CONTACT--&gt;
  &lt;div class = "container"&gt;
      &lt;center&gt;
          &lt;img class = "featuredImg" src = "img/contact.png" width = "100%"&gt;
      &lt;/center&gt;
  &lt;/div&gt;
  
  &lt;!--INSTRUCTIONS--&gt;
  &lt;center&gt;
  &lt;br&gt;
  &lt;br&gt;
      &lt;h4&gt;If you'd like to contact us, please either fill out the contact form below or give us a call at &lt;NUMBER&gt;&lt;/h4&gt; 
  &lt;/center&gt;
  
  &lt;div class = "container"&gt;
      &lt;form class = "form-horizontal" role = "form" method = "post"&gt;
  
          &lt;!--NAME FIELD--&gt;
          &lt;div class = "form-group"&gt;
              &lt;label for = "inputName"&gt;Name: &lt;/label&gt;
              &lt;input type = "text" class = "form-control" id = "inputName" placeholder = "Your name here"&gt;
          &lt;/div&gt;
  
          &lt;!--EMAIL FIELD--&gt;
          &lt;div class = "form-group"&gt;
              &lt;label for = "inputEmail"&gt;e-mail: &lt;/label&gt;
              &lt;input type = "email" class = "form-control" id = "inputEmail" placeholder = "Your e-mail address here"&gt;
          &lt;/div&gt;
  
          &lt;!--MESSAGE FIELD--&gt;
          &lt;div class = "form-group"&gt;
              &lt;label for = "inputMessage"&gt;Message: &lt;/label&gt;
              &lt;textarea class = "form-control" rows = "5" placeholder = "Your message here"&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  
      &lt;center&gt;
          &lt;!--CANCEL &amp; SEND BUTTONS OR SUCCESS MESSAGE--&gt;
          &lt;?php if isset($_GET["status"]) AND $_GET["status"] == "success"){?&gt;
              &lt;div class = "alert alert-success altert-dismissable"&gt;
                  &lt;button type = "button" class = "close" data-dismiss = "alert" aria-hidden = "true"&gt;&amp;times;&lt;/button&gt;
                  &lt;strong&gt;SUCCESS!&lt;/strong&gt;  Thanks for taking the time to contact us, we'll get back to you as soon as we can!
              &lt;/div&gt;
          &lt;?php } else { ?&gt;
              &lt;a href = "index.php" class = "btn btn-danger"&gt;Cancel &amp; return to home page&lt;/a&gt;
              &lt;a href = "#" class = "btn btn-success"&gt;Send message&lt;/a&gt;
          &lt;?php } ?&gt;
      &lt;/center&gt;
  &lt;/div&gt;
  
  &lt;!--FOOTER--&gt;
  &lt;?php
      include('inc/footer.php');
  ?&gt;
  </code></pre>
  
  <p>I'm pretty sure the HTML works okay as the page was working fine before I put the PHP in so if you could give it a look over and give me a heads up or even correct it for me then that'd be fantastic.</p>
  
  <p>Thanks in advance,
  Olly</p>