title: Foundation contact form with abide - php is not working
body: <p>I have tried everything to get this form to work but no luck. </p>
  
  <p>I guess abide is working now but my php is not sending the email. I don't even think that my php is getting called anyway. </p>
  
  <p>my code is below </p>
  
  <p>form code 
  line 434</p>
  
  <pre><code>&lt;form id="myForm" data-abide action="mail.php" method="post"&gt;
                                  &lt;div class="contactform"&gt;
                                      &lt;div class="item item-pair"&gt;
                                        &lt;label for="name"&gt;Full Name
                                          &lt;input type="text" name="name" id="name" class="small-input cat_textbox" required   pattern="[a-zA-Z]+"  maxlength="255"&gt;
                                           &lt;small class="error small-input"&gt;Name is required and must be a string.&lt;/small&gt;
                                        &lt;/label&gt;
                                        &lt;label for="email"&gt;Email Address
                                          &lt;input type="text" name="email" id="email" class="small-input cat_textbox" maxlength="255" required  &gt;
                                           &lt;small class="error small-input"&gt;An email address is required.&lt;/small&gt;
                                        &lt;/label&gt;
                                      &lt;/div&gt;
                                      &lt;div class="item"&gt;
                                        &lt;label&gt;Comments&lt;/label&gt;
                                        &lt;textarea  cols="10" name="message" id="message" rows="4" class="cat_listbox" required &gt;&lt;/textarea&gt;
                                        &lt;small class="error"&gt;Please enter your comments&lt;/small&gt;
                                      &lt;/div&gt;
                                      &lt;div class="item"&gt;
                                        &lt;input class="button alert small" type="submit" value="Submit" id="catwebformbutton"&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                                &lt;/form&gt;
  </code></pre>
  
  <p>javascript code 
  line 627</p>
  
  <pre><code>&lt;script&gt;
  
           $('#myForm').submit(function(e) {
              //prevent default form submitting.
              e.preventDefault();
  
              $(this).on('valid', function() {
                var name = $("input#name").val();
                var email = $("input#email").val();
                var message = $("textarea#message").val();
  
                //Data for reponse
                var dataString = 'name=' + name +
                  '&amp;email=' + email +
                  '&amp;message=' + message;
  
                //Begin Ajax call
                $.ajax({
                  type: "POST",
                  url:"mail.php",
                  data: dataString,
                  success: function(data){
                    $('.contactform').html("&lt;div id='thanks'&gt;&lt;/div&gt;");
                      $('#thanks').html("&lt;h2&gt;Thanks!&lt;/h2&gt;")
                      .append("&lt;p&gt;Dear "+ name +", I will get back to you as soon as I can ;)&lt;/p&gt;")
                      .hide()
                      .fadeIn(1500);
                  },
                }); //ajax call
                return false;
              });
            });    
  
  
          &lt;/script&gt;
  </code></pre>
  
  <p>html link 
  <a href="http://tayrani.com" rel="nofollow">http://tayrani.com</a></p>
  
  <p>Please help</p>
  
  <pre><code>&lt;?php
  
  $name = $_POST["name"];
  $email = $_POST["email"];
  $comments = $_POST["message"];
  
  $msg = "
  Name:$name
  Email:$email
  Comment:
  $comments";
  
  $to = "tayrani@hotmail.com";
  $subject = "website email";
  $message = $msg;
  $headers = "form";
  mail($to,$subject,$message,$headers);
  
  ?&gt;
  </code></pre>