<?php
//echo '<pre>';print_r($_POST); exit;
//error_reporting(1);
$myemail = 'info@dreamholidays.co.in';
//$myemail = 'test@gmail.com';
$sent = 'Thank you for Details. We will contact you as soon ';
$name = $_POST['name'];
$email = $_POST['email'];
$adults = $_POST['adults'];
$kids = $_POST['kids'];
$duration = $_POST['duration'];
$date = $_POST['date'];
$budget = $_POST['budget'];
$contact = $_POST['contact'];
$any_special = $_POST['any_special'];
$webMaster = 'info@dreamholidays.co.in';

if (isset($_POST['enquiry_email'])) {

$to = $myemail; 
$subject = "Booking APPLICAION";

$message = "
<html>
<head>
<title>Booking APPLICAION</title>
</head>
<body

<table width='200' border='1'>
	<tr>
	<td>Name :</td>
	<td style='padding-left:10px'>".$name."</td>
	</tr>
	<tr>
	<td>Email :</td>
	<td style='padding-left:10px'>".$email."</td>
	</tr>
	<tr>
	<td>Adults :</td>
	<td style='padding-left:10px'>".$adults."</td>
	</tr>
	<tr>
	<td>Kids :</td>
	<td style='padding-left:10px'>".$kids."</td>
	</tr>
 	<tr>
	<td>Duration :</td>
	<td style='padding-left:10px'>".$duration."</td>
	</tr>
	<tr>
	<td>Date :</td>
	<td style='padding-left:10px'>".$date."</td>
	</tr>
	<tr>
	<td>Budget :</td>
	<td style='padding-left:10px'>".$budget."</td>
	</tr>
	<tr>
	<td>Contact :</td>
	<td style='padding-left:10px'>".$contact."</td>
	</tr>
	<tr>
	<td>Any Special :</td>
	<td style='padding-left:10px'>".$any_special."</td>
	</tr>
	

	</table>
</body>
</html>
";

// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

// More headers
$headers .= 'From: <'.$webMaster.'>' . "\r\n";

if(mail($to,$subject,$message,$headers))
{
// echo "message sent successfully";
header("Location: index.html");
}
}
?> 
