';} if ($tourDateNeeded) {echo '* Please select a tour date.
';} if ($eitherNeeded) {echo '* Please provide either your email address or phone number so that we will be able to follow-up with you on your request
';} if ($invalidEmail) {echo '* Invalid Email
';} if ($verificationNeeded) {echo '* Please enter the verification code
';} if ($verificationFailed) {echo '* Incorrect Verification Code
';} ?>
Verification Code
Name: '.stripslashes($eman).'
Preferred Tour Date: '.stripslashes($tourDate).'
Preferred Tour Time: '.stripslashes($tourTime).'
Email: '.stripslashes($email).'
Phone: '.stripslashes($phone).'
Postal Code: '.stripslashes($postalCode).'
Comments:'.stripslashes(nl2br($comments)).'
'; // SENDS OUT MAIL if(mail($toEmail, $subject, $message, $header)) { $createDate = date_create($tourDate); $dateBooked = date_format($createDate, "F d, Y"); $_SESSION['form_name'] = $name; $_SESSION['form_date'] = $dateBooked; $_SESSION['form_time'] = $tourTime; echo ''; exit; /* echo '
Thank you '.$name.' for your request to book a tour with us for '.$dateBooked.' at '.$tourTime.'.
You will hear back from us within 24 hours to confirm your appointment.
'; */ } //IF MAIL FAILS AND DOESN'T SEND, SHOW CONTACT FORM AGAIN else { ?>
There was an sending your message. Please try again.
Verification Code