reserve

get_results(“SELECT * FROM wp_hexmember where id=$id”);

if ( $get_members )
{
foreach ( $get_members as $get_member )
{
//print_r($get_member);
$fname=$get_member->title;
$lname=$get_member->lname;
$email=$get_member->email;
$anc_text=$get_member->anc_text;
$anc_img=$get_member->anc_img;
$up_weather=$get_member->up_weather;
$emp_text=$get_member->emp_text;
$emp_file_upload=$get_member->emp_img;
$emp_detail_txt=$get_member->emp_detail;
$upcoming_flights=$get_member->upcoming_flights;
$sp_offers=$get_member->s_offers;
$up_trips=$get_member->up_trips;

}
}

if(isset($_POST[‘Reserve’])){

$flight_to = $_POST[‘flight_to’];
$flight_from = $_POST[‘flight_from’];
$flight_date = $_POST[‘flight_date’];
$additional = $_POST[‘additional’];

$customer_message = ”
Name: $fname $lname

Date of Travel: $flight_date

Offers Intersted In:
$sp_offers

Additional Information:
$additional

“;

function _get_email_eol_char() {
$eol = “\n”;
if (strtoupper(substr(PHP_OS, 0, 3) == ‘WIN’))
$eol = “\r\n”;
else if (strtoupper(substr(PHP_OS, 0, 3) == ‘MAC’))
$eol = “\r”;
return $eol;
}

#########################################################
#SEND CONFIRMATION EMAIL
#########################################################

$recipient = “david@Transexec.com”;
$recipient = “michael@mstechsolutions.com”;
$from = “info@transexec.com”;
$reply_to = “info@transexec.com”;
$subject = “SPECIAL OFFER RESERVATION – $lname – $submission_date “;
$eol = _get_email_eol_char();

$headers = “MIME-Version: 1.0$eol”
. “From: $from$eol”
. “Reply-to: $reply_to$eol”;
$headers .= “Bcc: michael@utown.com” . $eol;
$headers .= “Content-type: text/html; charset=iso-8859-1”;
mail($recipient, $subject, $customer_message, $headers);
#echo $customer_message;
echo ““;
#header(“Location: http://www.transexec.com/confirmed”);
}

?>

Welcome
Today’s Date:

 

Complete this form below and we’ll call you to confirm the reservation.

Date of Travel:

Offers interested in:

 

Additional Information: