title: Contact Form fields not being passed
body: <p>I am working on a simple contact form however when the email comes through the fields are empty. The form sends fine but it doesn't get any of the values. My form HTML looks like this.</p>
  <pre><code>&lt;form id=&quot;main-contact-form&quot; class=&quot;contact-form&quot; name=&quot;contact-form&quot; method=&quot;post&quot; action=&quot;sendemail.php&quot;&gt;
    &lt;input type=&quot;text&quot; name=&quot;namefirst&quot; id=&quot;namefirst&quot; class=&quot;input-block-level&quot; required=&quot;required&quot; placeholder=&quot;Your First Name&quot;&gt;
    &lt;input type=&quot;text&quot; name=&quot;namefirst&quot; id=&quot;namefirst&quot; class=&quot;input-block-level&quot; required=&quot;required&quot; placeholder=&quot;Your First Name&quot;&gt;
    &lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot; class=&quot;input-block-level&quot; required=&quot;required&quot; placeholder=&quot;Your email address&quot;&gt;
    &lt;textarea name=&quot;message&quot; id=&quot;message&quot; required=&quot;required&quot; class=&quot;input-block-level&quot; rows=&quot;8&quot;&gt;&lt;/textarea&gt;
  &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary btn-large pull-right&quot;&gt;Send Message&lt;/button&gt;
  </code></pre>
  <p>The PHP side of things is as follows</p>
  <pre><code>header('Content-type: application/json');
     $status = array(
      'type'=&gt;'success',
      'message'=&gt;'Email sent!'
  );
  
  $nameFirst = $_POST['namefirst'];
  $nameLast = $_POST['namelast']; 
  $email = $_POST['email']; 
  $message = $_POST['message']; 
  $subject = $message;
  
  $email_from = $email;
  $email_to = 'jdwman14@gmail.com';
  
  $body = 'Name: ' . $nameFirst .' '. $nameLast. &quot;\n\n&quot; . 'Email: ' . $email . &quot;\n\n&quot; . 'Subject: ' . $subject . &quot;\n\n&quot; . 'Message: ' . $message;
  
  $success = @mail($email_to, $subject, $body, 'From: &lt;'.$email_from.'&gt;');
  
  echo json_encode($status);
  
  die;
  </code></pre>
  <p>When the email comes through it has this format but has none of the variables.</p>
  <p>Name:</p>
  <p>Email:</p>
  <p>Subject:</p>
  <p>Message:</p>