Request More Information

/* CHANGE LOG
* [20081204] [bmunoz] added additional questions as requested by Cassidy/Jen/Pat
*/
$transportation_china_url = “http://www.transportationnanjing.com”;
$home = $transportation_china_url;
$about_us = $transportation_china_url.”/about”;
$services = $transportation_china_url.”/our-services”;
$reservations = $transportation_china_url.”/reservations”;
$contact_us = $transportation_china_url.”/contact-us”;
$help = $transportation_china_url.”/help”;
$subject = “A Transportation Nanjing Quote Request Has Been Received.”;

$quote_mailto = “quote@transportationchina.net”;
//$quote_mailto2 = “3102456198@tmomail.net”;

if (isset($_GET["sbt"])) {
$sbt = $_GET["sbt"];
} else {
$sbt = 0;
}
if (isset($_GET["email"])) {
$email= $_GET["email"];
} else {
$email = “”;
}

if ($sbt==”1″) {

?>

// $name, $email, $phone, $cities, $arrival_date, $departure_date, $comments
$message = “A request for a quote has just been received.\n\n”;
$message .= “—————————————————-\n”;
$message .= “1. Reply via email that we have received their quote and provide some a) helpful information about the cities they are visiting and b) why they would benefit from our services instead of going it alone.\n”;
$message .= ” If a phone number is provided, write that we will follow-up via phone.\n”;
$message .= ” If no phone number is provided, ask for the best number to reach them at since you have additional questions about their itinerary.\n”;
$message .= ” No actual quote yet.\n”;
$message .= “2. Record notes \n”;
$message .= “3. Follow-up via phone. \n”;
$message .= “4. Record notes \n”;
$message .= “5. Continue to follow-up. \n\n”;
$message .= “—————————————————-\n”;
$message .= “Name: ” . $_GET['nume'] . “\n”;
$message .= “Email: ” . $_GET['email'] . “\n”;
$message .= “Phone: ” . $_GET['phone'] . “\n”;
$message .= “Cities: ” . $_GET['cities'] . “\n”;
$message .= “Arrival Date: ” . $_GET['arrival_date'] . “\n”;
$message .= “Departure Date: ” . $_GET['departure_date'] . “\n”;
$message2 = “A Transportation China quote request has been received”;
//$message .= “Additional Services: ” . $_GET['additional_services'] . “\n”;
//$message .= “Additional Comments: ” . $_GET['comments'] . “\n”;
$headers = “From: Transportation China <$quote_mailto>”;
$mail_sent_bln = @mail( $quote_mailto, $subject, $message, $headers );
//$mail_sent_bln2 = @mail( $quote_mailto2, $subject, $message2, $headers );
$msg_to_customer = “We have successfully received your quote request!\n\n”;
$msg_to_customer .= “If you included detailed information about your itinerary, we will be in touch shortly with pricing information. If not, then a customer service representative will be contacting you to get detailed trip information and to answer any questions you may have.\n\n”;

$msg_to_customer .= “If you depart for China in less than one week, we will automatically expedite your request so that you can have your car and driver service confirmed as soon as possible.\n\n”;
$msg_to_customer .= “Standard pricing information for car and driver service may be found here: http://www.transportationnanjing.com/rates/ .\n\n”;
$msg_to_customer .= “Traveling to other cities in China? We can also handle those arrangements. View our other locations: http://www.transportationnanjing.com/locations/ .\n”;

$msg_to_customer .= “\n Sincerely,\n
Transportation China\n
For a Worry-Free Business Trip.\n”;
$mail_sent_customer_bln = @mail( $_GET['email'], “Your Transportation Nanjing Quote Has Been Received”, $msg_to_customer, $headers );
if ($mail_sent_bln && $mail_sent_bln2) { // success
print(”

Your Quote Request Has Been Received.

“);
print(”

“);
print(”Someone will contact you within 24 hours guaranteed!
“);
print(”You may also contact us via email at quote@transportationchina.net.”);
print(”
“);
print(”

“);
print(”

“);
?>




} else { // failure
$sbt = 0;
@mail( “benmunoz@transportationchina.net”, “Transportation China Error!”, “There was an error when a customer tried to send a quote.”);

print(”

There was an error

“);
}
print(”
“);
print(”

“);
print(”Customer Notification: “.$mail_sent_customer_bln);
print(”

“);
}
?>
if ($sbt==0) { // not submitted or failed to submit
?>

Your Name:

Your Email:

Your Phone Number (optional):

Cities You Will Visit (optional):

Your Arrival Date (optional):

Your Departure Date (optional):

Thank you for your inquiry. We will respond within 24 hours guaranteed.

}
?>