session_start(); // function function sendmail($to,$sub,$body,$mailfrom) { $headers = 'From: '.$mailfrom." \n"; $headers .= 'MIME-Version: 1.0' ."\n"; $headers .= 'Content-Type: text/HTML; charset=ISO-8859-1' ."\n"; @mail ($to,$sub,$body,$headers); } // Function to check whether a given hostName is a valid email if(isset($_REQUEST['Submit'])) { if( $_SESSION['image_random_value'] == $_POST['security_code'] && !empty($_SESSION['image_random_value'] ) ) { // Insert you code for processing the form here, e.g emailing the submission, entering it into a database. // PHP Code for Sending Email will be here $name=$_REQUEST['name']; $email=$_REQUEST['email']; $phone_number=$_REQUEST['phone_number']; $best_time_call=$_REQUEST['best_time_call']; $Country=$_REQUEST['Country']; $number_of_perssons=$_REQUEST['number_of_perssons']; $date=$_REQUEST['date']; $month=$_REQUEST['month']; $Year=$_REQUEST['Year']; $numbers_of_days=$_REQUEST['numbers_of_days']; $hotel=$_REQUEST['hotel']; $Areas=$_REQUEST['Areas']; $remarks=$_REQUEST['remarks']; // Change email address to receive emails $email_to="mail@sunshineindia.com"; // Specify used email address to send email using html form, could be same as to address $email_from="mail@sunshineindia.com"; // Subject for the email $the_subject="Customise Tour Enquiry"; // Actual form fields // Replace $variable with the actual form field name. Mind the case ($firstname is not equal to $FirstName) ob_start(); //Turn on output buffering ?>
| Customise Tour Enquiry from Sunshineindia.com | ||
Name |
: | echo $name; ?> |
Email | : | echo $email; ?> |
Phone Numbers | : | echo $phone_number; ?> |
Best Time to Call | : | echo $best_time_call; ?> |
Country | : | echo $Country; ?> |
Numbers of Persons |
: | echo $number_of_perssons; ?> |
Arrival Date/ Month of Travel | : | echo $date."-".$month."-".$Year; ?> |
Numbers of Days | : | echo $numbers_of_days; ?> |
Areas of Interest (Region/Interest) | : | echo $Areas; ?> |
Category of Hotels Required | : | echo $hotel; ?> |
Remarks | : | echo $remarks; ?> |
|
||||||||||
|
||||||||||
|
||||||||||
|
||||||||||