include("keralaadmin/includes/connect.php");
$sqlp=mysqli_query($conn,"select * from spanel where name='Contact us' ");
$ffetchp=mysqli_fetch_array($sqlp,MYSQLI_ASSOC);
if(($_POST['btnsubmit'])=='Submit')
{
$name =trim($_POST['name'])?$_POST['name']:"";
$email=trim($_POST['email'])?$_POST['email']:"";
$subject=trim($_POST['subject'])?$_POST['subject']:"";
$mess=trim($_POST['message'])?$_POST['message']:"";
$to="inquiry@keralatour.net";
//$to="manishkasimpur@gmail.com";
//$subject=$subject;
$message = "
Name
| ".$name." |
Email |
".$email." |
Subject |
".$subject." |
Message |
".$mess." |
";
$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);
mail($to,$subject,$message,$headers);
//header('Location: http://golden-triangle-tours.com/thanks-contact-tour.php');
echo "";
}
?>