title: PHP form validation
body: <p>So I have created a form inside html the code - </p>
  
  <pre><code>&lt;form method="post" action="hi.php"&gt; 
  
  
      &lt;fieldset&gt;
          &lt;label class="labelone" type="text" /&gt;
          &lt;input name="name" placeholder="Your Name"/&gt;
          &lt;label class="email" for="email" /&gt;
          &lt;input name="email" placeholder="Email"/&gt;
          &lt;label class="phonenumber" for="phonenumber" /&gt;
          &lt;input name="phonenumber" placeholder="Phone Number"/&gt;
          &lt;label class="comments" for="comments" /&gt;
          &lt;textarea name="comments" placeholder="Comments"&gt;&lt;/textarea&gt;
      &lt;/fieldset&gt;
  
      &lt;fieldset&gt;
          &lt;input type="submit" value="Submit" class="btn" &gt;
          &lt;input class="btn" type="reset" value="Reset"&gt;
      &lt;/fieldset&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and this is the php - </p>
  
  <pre><code>&lt;?php
  
  
  
      $emailSubject = 'Test';
      $webMaster = 'Test';
  
  
  
      $name = $_GET['firstname'];
      $email = $_GET['lastname'];
      $message = $_GET['comment'];
  
      $body = &lt;&lt;&lt;EOD
  &lt;br&gt;&lt;hr&gt;&lt;br&gt;
  First Name: $firstname &lt;br&gt;
  Last Name: $lastname &lt;br&gt;
  Message: $comment &lt;br&gt;
  EOD;
  
  
      $headers = "From: $lastname\r\n";
      $headers = "Content-type: text/html\r\n";
      $success = mail($webMaster, $emailSubject, $body, $headers);
  
  
  
  
      $theResults = &lt;&lt;&lt;EOD
  &lt;?php 
  
  ?&gt;
  
  &lt;?php
  
  
  
      $emailSubject = 'Kent Pest Control Services';
      $webMaster = 'xxxxxxxxxEDITED@gmail.com';
  
  
  
      $name = $_GET['firstname'];
      $email = $_GET['email'];
      $phonenumber = $_GET['phonenumber']
      $message = $_GET['comments'];
  
      $body = &lt;&lt;&lt;EOD
  &lt;br&gt;&lt;hr&gt;&lt;br&gt;
  First Name: $firstname &lt;br&gt;
  Email: $email &lt;br&gt;
  Phone Number: $phonenumber &lt;br&gt;
  Message: $comments &lt;br&gt;
  EOD;
  </code></pre>
  
  <p>When I upload it to my hosting and fill in the php form, and click submit, it goes to a blank screen, and I dont get an email, I have used this before like a year ago, I dont know if the code has changed since then, but I cant get it to work, I hope someone can help. :) I changed the email so people cant email me ;)</p>