0 ) { contact( $arr_msg ) ; exit() ; } include("./common/htmlMimeMail.php") ; $o_mail= new htmlMimeMail() ; $message = "YOUR CHOICE OF TOUR:\r\n"; $message .= " 1. Tour Code & Name: $tour_name\r\n"; $message .= " 2. Tour Kind: $tour_kind\r\n"; $message .= " 2. Tour Date: $tour_date\r\n"; $message .= " 3. Number of Pax: Adults: $adult - Children: $children\r\n"; $message .= "\r\nYOUR CONATCT DETAIL:\r\n"; $message .= " 1. Full Name: $salute $name\r\n"; $message .= " 2. Company: $company\r\n"; $message .= " 3. Address: $address\r\n"; $message .= " 4. Country: $country\r\n"; $message .= " 5. Tel: $tel1 - $tel2 - $tel3\r\n"; $message .= " 6. Fax: $fax1 - $fax2 - $fax3\r\n"; $message .= " 7. Email: $email\r\n"; $message .= "\r\nYOUR ARRIVAL / DEPARTURE FLIGHT INFORMATION:\r\n"; $message .= " 1. Arrial Date: $arrival_date - Carrier: $arrival_carrier - Flight No: $arrival_flight\r\n"; $message .= " 2. Departure Date: $depart_date - Carrier: $depart_carrier - Flight No: $depart_flight\r\n"; $message .= "\r\nANY OTHER COMMENTS OR INQUIRIES:\r\n"; $message .= "Comment: \r\n$comment\r\n"; $o_mail->setText($message ); $o_mail->setFrom($email) ; $o_mail->setSubject("Booking From [indochina-ventures.com]") ; $result = $o_mail->send( array($admin_email) ); header("Location: booking_thanks.htm") ; exit() ; } else { contact() ; } function contact( $arr_msg="" ) { if( ! is_array($arr_msg) ) $arr_msg= array() ; include("./common/cls_template.php") ; $s_filename= "booking.html" ; $o_template= new cls_template( $s_filename ) ; if( $o_template->b_error ) { echo("Cannot find this template file $s_filename. Please check it again.") ; exit() ; } $s_content= $o_template->m_content ; unset( $o_template ) ; $s_content= str_replace( "{message}", join("
", $arr_msg), $s_content ) ; print $s_content ; exit() ; } ?>