title: HTML Form email via post through PHP?
body: <p><strong>EDIT: My Mail does get sent, but it does not send the FORM information, just the text I have placed. So this isn't an e-mail issue, its an issue of getting the Data attached to the email. I have not seen this question before.</strong></p>
  
  <p>I'm not the best at PHP but I've been following a few guides on the internet, just learning some PHP. I've created a form in HTML that I want emailed to me upon submission. This is the code I have.</p>
  
  <p>I am receiving an e-mail but the form input is not getting sent to me. Could someone please assist me. I've tried validating my code and it all seems right, and I don't see any flaws in my logic. Any help would be strongly appreciated.</p>
  
  <pre><code>&lt;?php
  
  //Creating Variables with data obtained from FORM on Previous Page
  
  $firstname = $_POST['FirstName'];
  $lastname = $_POST['LastName'];
  $date = $_POST['Date'];
  $pick_up_time = $_POST['Time'];
  $vehicle = $_POST['Fleet'];
  $passenger = $_POST['Passengers'];
  $l_bags = $_POST['LargeBags'];
  $s_bags = $_POST['SmallBags'];
  $phone_number = $_POST['PhoneNumber'];
  $e_mail = $_POST['eMail'];
  $comments = $_POST['Comments'];
  
  //Testing to see if variable is getting created
  
  if ($firstname == "Reiyyan") {
  
  print ("Welcome back, friend!");
  
  }
  else {
  
  print ("MISSING DATA");
  
  }
  
  
  
  
  $email_from = 'reiyyan@gmail.com';
  $email_subject = "New Message Test";
  $email_body = "You got mail, here are the details. \n $firstname \n $lastname \n $date \n $pick_up_time \n $vehicle \n $passenger \n $l_bags \n $s_bags \n $phone_number \n $e_mail \n $comments".;
  
  $to = "reiyyan@gmail.com";
  $headers = "From: $email_from \r\n";
  
  //send mail
  mail($to,$email_subject,$email_body,$headers);
  //done
  
  ?&gt;
  </code></pre>
  
  <p>Here is my HTML Form</p>
  
  <pre><code>&lt;form id="RequestCar" method="post" action="emailForm.php" enctype="text/plain"&gt;
      First Name: &lt;input type="text" name="FirstName" placeholder="First Name" required/&gt; 
      Last Name: &lt;input type="text" name="LastName" placeholder="Last Name" required /&gt;
       &lt;br /&gt;&lt;br /&gt;
  
      Date: &lt;input type="date" name="Date" placeholder="01/01/2017" required /&gt;
      Pickup Time: &lt;input type="time" name="Time" placeholder="12:00 PM" required /&gt;
      &lt;br /&gt;&lt;br /&gt;
  
      Vehicle:
      &lt;select name="Fleet"&gt;
          &lt;option value="No Preference"&gt;No Preference&lt;/option&gt;
          &lt;option value="LuxurySedan"&gt;Luxury Sedan&lt;/option&gt;
          &lt;option value="SUV"&gt;Sub Utility Vehicle (SUV)&lt;/option&gt;
          &lt;option value="Minivan"&gt;Minivan&lt;/option&gt;
          &lt;option value="Minivan"&gt;Stretch Limousine&lt;/option&gt;
          &lt;option value="Minivan"&gt;SUV Limousine&lt;/option&gt;
          &lt;option value="Minivan"&gt;Hummer Limousine&lt;/option&gt;
      &lt;/select&gt;
      &lt;br /&gt;&lt;br /&gt;
  
      # of Passengers: &lt;input type="number" name="Passengers" required min="1" /&gt;
      # of Large Bags: &lt;input type="number" name="LargeBags"  /&gt;
      # of Small Bags: &lt;input type="number" name="SmallBags"  /&gt;
      &lt;br /&gt;&lt;br /&gt;
  
      Phone Number: &lt;input type="tel" name="PhoneNumber" required /&gt;
      eMail: &lt;input type="email" name="eMail" required /&gt;
      &lt;br /&gt;&lt;br /&gt;
  
      Additional Comments
      &lt;br /&gt;&lt;br /&gt;
      &lt;textarea rows="6" cols="100" name="Comments" form="RequestCar" placeholder="Enter Text Here..."&gt;&lt;/textarea&gt;
  
      &lt;br /&gt;&lt;br /&gt;
      &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Regardless of what I try, I keep getting "MISSING DATA". It seems like the Form isn't passing on the variables to the php page.</p>
  
  <p>Edit: This is hosted on GoDaddy, LINUX Server.</p>