title: Bootstrap theme using Php to send email form error
body: <p>I have this html code for the form:</p>
  
  <pre><code>&lt;form action="index.php" method="post"  id="form" class="form" role="form"&gt;
  
      &lt;h4 class="form-heading"&gt;Luxury at an affordable price&lt;/h4&gt;
  
      &lt;div class="form-validation alert"&gt;&lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          &lt;label for="form-name"&gt;Name&lt;/label&gt;
          &lt;input type="text" name="name" id="form-name" class="form-control" placeholder="Your Full Name" autocomplete="off"&gt;
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          &lt;label for="form-email"&gt;Email Address&lt;/label&gt;
          &lt;input type="email" name="email" id="form-email" class="form-control" placeholder="Your Valid Email Address" autocomplete="off"&gt;
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          &lt;label for="form-phone"&gt;Phone Number&lt;/label&gt;
          &lt;input type="phone" name="phone" id="form-phone" class="form-control" placeholder="Your Valid Phone Number" autocomplete="off"&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
          &lt;label for="form-info"&gt;Package&lt;/label&gt;
          &lt;p&gt;
              &lt;select type="info" name="info" id="form-info" class="form-control"&gt;
                  &lt;option value="Diamond"&gt;Diamond&lt;/option&gt;
                  &lt;option value="Gold"&gt;Gold&lt;/option&gt;
                  &lt;option value="silver"&gt;Silver&lt;/option&gt;
                  &lt;option value="silver"&gt;Custom&lt;/option&gt;
              &lt;/select&gt;
          &lt;/p&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
          &lt;label for="form-pax"&gt;# of People&lt;/label&gt;
          &lt;input type="pax" name="pax" id="form-pax" class="form-control" placeholder="Number of People in your Party" autocomplete="off"&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
          &lt;label for="form-com"&gt;Comments&lt;/label&gt;
          &lt;input type="com" name="com" id="form-com" class="form-control" placeholder="Additional Comments" autocomplete="off"&gt;
      &lt;/div&gt;
      &lt;div class="form-group form-group-submit"&gt;
          &lt;button class="btn btn-primary btn-lg btn-block" data-loading-text="Action Button"&gt;More Info&lt;/button&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And also i have this Php code:</p>
  
  <pre><code>&lt;?php 
  if(empty($_POST['name'])        ||
     empty($_POST['email'])       ||
     empty($_POST['phone'])       ||
     empty($_POST['info'])    ||
     empty($_POST['pax']) ||
     !filter_var($_POST['email'],FILTER_VALIDATE_EMAIL))
     {
      echo '&lt;script type="text/javascript"&gt;alert("Your data is not valid!");&lt;/script&gt;';
      return false;
     }
  $name = $_POST['name'];
  $email = $_POST['email'];
  $phone = $_POST['phone'];
  $info = $_POST['info'];
  $pax= $_POST['pax'];
  $com= $_POST['com'];
  // Create the email and send the message
  $to = 'rubengallardo.88@gmail.com'; // Add your email address inbetween the '' replacing yourname@yourdomain.com - This is where the form will send a message to.
  $email_subject = "Contacto de cancunprivateparty.com : $name";
  $email_body = "Nuevo mensaje del formulario de Cancún Private Party.\n\n"."Estos son los detalles:\n\nNombre: $name\n\nEmail: $email\n\nTel: $phone\n\nPaquete: $info \n\n # de Pax: $pax \n\n Comentarios: $com"  ;
  $headers = "From: noreply@cancunprivateparty.com\n"; // This is the email address the generated message will be from. We recommend using something like noreply@yourdomain.com.\n\n Comentarios: $com
  $headers .= "Reply-To: $email_address"; 
  mail($to,$email_subject,$email_body,$headers);
  echo '&lt;script type="text/javascript"&gt;alert("Your message has been sent!");&lt;/script&gt;';
  echo '&lt;meta http-equiv="refresh" content="0; URL=http://www.cancunprivateparty.com"&gt;';
  
  return true;    
  
  
   ?&gt; 
  </code></pre>
  
  <p>When i fill the form and send the email i get a error that says "your data is not valid" even if my data is valid. </p>
  
  <p>What could be the problem here?</p>