Town And Country Animal Hospital Logo




Sunday: CLOSED

Request a Vet Appointment

PLEASE ALLOW 24 HOURS FOR A RESPONSE TO YOUR REQUEST

Please enter your name!

'; } // Check for an email address. if (eregi ('^[[:alnum:]][a-z0-9_\.\-]*@[a-z0-9\.\-]+\.[a-z]{2,4}$', stripslashes(trim($_POST['email'])))) { $e = ($_POST['email']); } else { $e = FALSE; echo '

Please enter a valid email address!

'; } if (!empty($_POST['phone'])) { $p = ($_POST['phone']); } else { $p = FALSE; echo '

Please enter a phone number!

'; } // Check CAPTCHA if(isset($_POST['g-recaptcha-response'])){ $captcha=$_POST['g-recaptcha-response']; } if(!$captcha){ echo '

Please check the the captcha form.

'; } $response=file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6Lcz3wETAAAAAD7s4vXdQVvhX-DUR8Be6MxG2XMK&response=".$captcha); if($response.success==false) { echo '

Please check the the CAPTCHA form.

'; } // Check for Comments. if(!empty($_POST['comments'])){ $t = stripslashes($_POST['comments']); } else { $t = FALSE; echo '

Please enter some Comments!

'; } if(!empty($_POST['firstDate'])){ $firstD = $_POST['firstDate']; } else { $firstD = FALSE; echo '

Please enter an Appointment Date

'; } $contact = $_POST['contactPref']; $petName = $_POST['petName']; $secondD = $_POST['secondDate']; $thirdD = $_POST['thirdDate']; $firstT = $_POST['firstTime']; $secondT = $_POST['secondTime']; $thirdT = $_POST['thirdTime']; if ($n && $e && $t && $p && $captcha && $firstD) { // If everything's OK. //Send the email. $to = "$e"; $body = '
Customer is Requesting an Appointment:
Client Name: ' . $n . '
Email: ' . $e . '
Phone Number: ' . $p . '
Contact Preference: ' . $contact . '
Pet Name: ' . $petName . '
First Date Preference: ' . $firstD . ' in the ' . $firstT . '
Second Date Preference: ' . $secondD . ' in the ' . $secondT . '
Third Date Preference: ' . $thirdD . ' in the ' . $thirdT . '
Message from Customer: ' . $t . '
'; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers //$headers .= 'From: '. $e . "\r\n"; mail($webmaster,$subject,$body,$headers); //,"From: $webmaster"); // Finish the page. echo "

Thank You $n.
You have submitted the following:


Name: $n
Email: $e
Phone Number: $p
Contact Preference: $contact
Pet Name: $petName
First Date Preference: $firstD
First Time Preference: $firstT
Second Date Preference: $secondD
First Time Preference: $secondT
Third Date Preference: $thirdD
First Time Preference: $thirdT
Message:
$t


Back"; //include ('includes/footer.html'); // Include the HTML footer. exit(); } } // End of the main Submit conditional. */?>