include 'header.php';
$handle = fopen("/home/secure2/public_html/ecstasytours/booking.txt", "a");
//$handle = fopen("c:\apache\htdocs\stravel\booking.txt", "a");
if (!fwrite($handle, "\nFirst Name: $fname , Last Name: $lname , Street Address: $street , State: $state , City: $city , H Phone: $hphone1 - $hphone2 - $hphone3 , Cell Phone: $cphone1 - $cphone2 - $cphone3 , W-Phone: $wphone1 - $wphone2 - $wphone3 , Fax: $fax1 - $fax2 - $fax3 , Package: $package , Billing Address: $baddress , Bill-State: $bstate , Bill-City: $bcity , Payment Method: $pmethod , Card Type: $cardType , CC No: $cardNumber, Exp Date: $cardMonth-$cardYear , S-Code: $scode , PayPal: $paypal , Bank-Name: $bankname , Rout/ABA: $rout , Account: $account\n\n")) {
echo "Cannot write to file ($filename)";
exit;
}
$mailheaders = "Content-Type: text/html; charset=iso-8859-1\n";
$to = "contact@ecstasytours.com";
$subject = "Booking from : $fname $lname";
$message = "Tour Booking Notification - Please check booking.txt for a new Tour Booking";
mail ($to,$subject,$message,$mailheaders);
?>
|
|
|
|
|
|
|
Booking |
|
|
|
|
|
THANK YOU!
YOUR TOUR HAS BEEN BOOKED AND WE'LL GET IN TOUCH WITH YOU WITHIN 24 HOURS.
|
|
|
|
|
include 'footer.php'; ?>