I currently have a contact form on this site that I am looking to migrate from the php result to an ajax result. I used a mail.php file with this code:\[code\]<?php $firstname = $_POST['firstName']; $lastname = $_POST['lastName']; $email = $_POST['email']; $tel1 = $_POST['tel1']; $tel2 = $_POST['tel2']; $tel3 = $_POST['tel3']; $reason = $_POST['reason']; $message = $_POST['text']; $formcontent="From: $firstname $lastname \n Email address: $email \n Telephone Number: $tel1 $tel2 $tel3 \n Reason: $reason \n Message: $message"; $recipient = "[email protected]"; $subject = "Contact Form"; $mailheader = "From: $email \r\n"; mail($recipient, $subject, $formcontent, $mailheader) or die("Error!"); echo "<script>alert('Thank you!');</script>"; ?>\[/code\]This php file sent an email with the contact form results. However, it also reloaded the page and brought up an alert box on a blank page, which is not what I intended. I am looking to use the jquery ajax function to make it so that ajax will send the information to my php file to mail, unless I can just mail the contact form directly from ajax getting the result.