My contact form only works when I remove the presently attached (and necessary) "jquery.validate.js" file. Once removed, other things (such as my drop down menu and drop down search bar) display incorrectly.
--this is the live test site WITH the "jquery.validate.js" and broken contact form
http://triflexlabel.com/contact2.html--and this is the live test site WITHOUT the "jquery.validate.js" and broken menu & search bar. (The email is sent & received successfully but the client is redirected to a blank page. I want them to remain on the contact page but see the popup "thanks! our team will get in touch in the next 24 hours". You can see the message on the above test site WITH the "jquery.validate.js")
http://triflexlabel.com/contact3.htmlI gather you can see the html and javascript with firebug or something alike since it won't let me attach "those file types" to this post. This is what the php looks like too:
- <?php
$name = $_POST['name'];
$company = $_POST['company'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$contact = $_POST['contact_method'];
$comment = $_POST['comment'];
$to = "kayla@triflexlabel.com";
$subject = "New Contact Form Entry";
$body =
"$comment \n\n" .
"\t $name \n" .
"\t $company \n" .
"\t $email \n" .
"\t $phone \n\n" .
$body .= "\t Contact: \n\t\t";
foreach($_POST['contact_method'] as $value){
$body .= $value . "\n";
}
mail ($to, $subject, $body, "From: " . $email);
//echo "Your message has been sent";
?>
I hope I explained it clearly! Thanks in advance!!