if(($_POST['btnsubmit']) !="")
{
$ip=$_SERVER['REMOTE_ADDR'];
$name =trim($_POST['name'])?$_POST['name']:"";
$email=trim($_POST['email'])?$_POST['email']:"";
$days=trim($_POST['days'])?$_POST['days']:"";
$countrycode=trim($_POST['countrycode'])?$_POST['countrycode']:"";
$mobile1=trim($_POST['mobile'])?$_POST['mobile']:"";
$doj=trim($_POST['timestamp'])?$_POST['timestamp']:"";
$adults=trim($_POST['adults'])?$_POST['adults']:"";
$kid=trim($_POST['kid'])?$_POST['kid']:"";
$city=trim($_POST['city'])?$_POST['city']:"";
$country=trim($_POST['country'])?$_POST['country']:"";
$tour=trim($_POST['tour'])?$_POST['tour']:"";
$details=trim($_POST['details'])?$_POST['details']:"";
$mobile=$countrycode."-".$mobile1;
$to="info@northindiatours.net";
//$to="manishkasimpur@gmail.com";
$subject="Enquiry Form!!";
$message = "
Name
| ".$name." |
Date of Arrival |
".$doj." |
city
| ".$city." |
tour Style |
".$tour." |
Country |
".$country." |
Email |
".$email." |
Moble Number |
".$mobile." |
Number of Days |
".$days." |
Adults |
".$adults." |
Kids |
".$kid." |
More Details |
".$details." |
IP Address |
".$ip." |
";
//echo "asdfasd"; die;
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html" . "\r\n";
// More headers
$headers .= 'From:'.$email.' "\r\n"';
mail($to,$subject,$message,$headers);
//header('Location: http://golden-triangle-tours.com/thanks-contact-tour.php');
echo "";
}
?>