'Alabama', 'AK' => 'Alaska', 'AZ' => 'Arizona', 'AR' => 'Arkansas', 'CA' => 'California', 'CO' => 'Colorado', 'CT' => 'Connecticut', 'DC' => 'D.C.', 'DE' => 'Delaware', 'FL' => 'Florida', 'GA' => 'Georgia', 'HI' => 'Hawaii', 'ID' => 'Idaho', 'IL' => 'Illinois', 'IN' => 'Indiana', 'IA' => 'Iowa', 'KS' => 'Kansas', 'KY' => 'Kentucky', 'LA' => 'Louisiana', 'ME' => 'Maine', 'MD' => 'Maryland', 'MA' => 'Massachusetts', 'MI' => 'Michigan', 'MN' => 'Minnesota', 'MS' => 'Mississippi', 'MO' => 'Missouri', 'MT' => 'Montana', 'NE' => 'Nebraska', 'NV' => 'Nevada', 'NH' => 'New Hampshire', 'NJ' => 'New Jersey', 'NM' => 'New Mexico', 'NY' => 'New York', 'NC' => 'North Carolina', 'ND' => 'North Dakota', 'OH' => 'Ohio', 'OK' => 'Oklahoma', 'OR' => 'Oregon', 'PA' => 'Pennsylvania', 'RI' => 'Rhode Island', 'SC' => 'South Carolina', 'SD' => 'South Dakota', 'TN' => 'Tennessee', 'TX' => 'Texas', 'UT' => 'Utah', 'VT' => 'Vermont', 'VA' => 'Virginia', 'WA' => 'Washington', 'WV' => 'West Virginia', 'WI' => 'Wisconsin', 'WY' => 'Wyoming'); } function usStates(){ $data = us_state(); $html = ''; foreach($data as $k=>$v){ $html .= ''; } return $html; } if(isset($_POST['status'])){ /* foreach($_POST as $k=>$v){ $$k = $v; } */ $sql = "insert into cm_reserve01 set cs_name = '".$cs_name."' , cs_pickup = '".$cs_pickup."' , cs_airline = '".$cs_airline."' , cs_address = '".$cs_address."' , cs_city = '".$cs_city."' , cs_state = '".$cs_state."' , cs_zipcode = '".$cs_zipcode."' , cs_dest_date = '".$cs_dest_date."' , cs_dest_time = '".$cs_dest_time."' , cs_phone = '".$cs_phone."' , cs_email = '".$cs_email."' , cs_dropoff = '".$cs_dropoff."' , cc_name = '".$cc_name."' , cc_phone = '".$cc_phone."' , cc_address = '".$cc_address."' , cc_type = '".$cc_type."' , cc_number = '".$cc_number."' , cc_expire = '".$cc_expire."' , cc_cvc_code = '".$cc_cvc_code."' , cs_comment = '".$cs_comment."' , postdate = '".mktime()."';"; //echo $sql; sql_query($sql); $reserve_id = mysql_insert_id(); include_once('phpmailer/class.phpmailer.php'); $mail = new PHPMailer(); // defaults to using php "mail()" $mail->CharSet = 'UTF8'; $mail->ContentType = 'text/html'; $body = $mail->getFile('reservation_result.htm'); $a = array('{reservation_number}','{cs_name}', '{cs_pickup}', '{cs_airline}', '{cs_address}', '{cs_city}', '{cs_state}', '{cs_zipcode}', '{cs_dest_date}', '{cs_dest_time}', '{cs_phone}', '{cs_email}', '{cs_dropoff}', '{cc_name}', '{cc_phone}', '{cc_address}', '{cc_type}', '{cc_number}', '{cc_expire}', '{cc_cvc_code}', '{cs_comment}'); $b = array($reserve_id, $cs_name, $cs_pickup, $cs_airline, $cs_address, $cs_city, $cs_state, $cs_zipcode, $cs_dest_date, $cs_dest_time, $cs_phone, $cs_email, $cs_dropoff, $cc_name, $cc_phone, $cc_address, $cc_type, $cc_number, $cc_expire, $cc_cvc_code, $cs_comment); $body = str_replace($a, $b, $body); //echo $body; $mail->From = $cs_email; $mail->FromName = $cs_name; $mail->Subject = "A New Reservation from ".$cs_name; $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $mail->MsgHTML($body); //$mail->AddAddress("sang9796@gmail.com", "Palpal Limo"); //$mail->AddAddress("info@palpallimo.com", "Palpal Limo"); $mail->AddAddress("palpallimo@gmail.com", "Palpal Limo"); $mail->Send(); $mail->ClearAllRecipients(); $body = $mail->getFile('reservation_confirm.htm'); $a = array('{reservation_number}'); $b = array($reserve_id); $body = str_replace($a, $b, $body); //echo $body; $mail->From = "palpallimo@gmail.com"; $mail->FromName = "Palpal Limo"; $mail->Subject = "Your Reservation from Palpal Limousines"; $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $mail->MsgHTML($body); $mail->AddAddress($cs_email, $cs_name); $mail->Send(); $before_send = false; } ?> palpal Limousine :: Welcome to palpal Limousine Service
First Name & Last Name:
Pick up Location (Please Provide Airline & Flight # if reserving from Airport):
Airline & Flight #:
(Example : United 101)
Address2:
City:
State/Providence:
Zip/Postal Code:
Date of Service / Pick-UP:
Time of Pickup or Arrival:
Phone #:
E-mail:
Drop-off Location(s) (Please ProvideAirport or City, State, Zip and Unit #):
Name on Credit Card:
Card Holder's Phone:
Card Billing Address:
Example : 1 North State St, Chicago, IL, 60602
Credit Card Type:
Credit Card Number:
Expiration Date:
CVV2/CVC Code:
VISA/MC: 3 digits from back of card
AMEX: 4 digits from front of card
Additional Comments
Information: 
(return, special needs, etc)
 
 
Thank you for your reservation.
We will contact you shortly to confirm your request.

'; echo ""; } ?>