if($_POST['submit']=="Submit"){
@extract($_POST);
$admin_email="booking@hotelvelscourt.com";
$message = "
Dear Admin, |
|
New enquiry has been received in our website |
|
Check In |
".$checkin." |
Check Out |
".$checkout." |
Number of Adult |
".$adult." |
Number of Children |
".$child." |
Room Type |
".$roomtype." |
No of Rooms |
".$noroom." |
FullName |
".$fname." |
Email |
".$email." |
Phone |
".$phone." |
Address |
".$address." |
Enquiry message |
".$message." |
Thank you
www.hotelvelscourt.com
|
";
$subject ="New enquiry has been received in our website www.hotelvelscourt.com";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From:Admin<$admin_email>\n";
@mail($admin_email,$subject,$message, $headers);
$custmessage = "
Dear ".$fname.", |
|
Thanks for your enquiry. Our Executive will contact you soon. |
Thank you
|
|
www.hotelvelscourt.com
| |
";
$custsubject="Thanks for your Enquiry in www.hotelvelscourt.com";
$custheaders = "MIME-Version: 1.0\n";
$custheaders .= "Content-type: text/html; charset=iso-8859-1\n";
$custheaders .= "From:Admin<$admin_email>\n";
@mail($email, $custsubject, $custmessage, $custheaders);
header("location:thanks.html");
exit;
}
$returncontent = join("",file("online-reservation.htm"));
$checkin=$_POST['checkin'];
$checkout=$_POST['checkout'];
$adult=$_POST['adult'];
$child=$_POST['child'];
if($adult==1){
$adtselect1="selected";
}elseif($adult==2){
$adtselect2="selected";
}elseif($adult==3){
$adtselect3="selected";
}elseif($adult==4){
$adtselect4="selected";
}elseif($adult==5){
$adtselect5="selected";
}
if($child==1){
$chldselect1="selected";
}elseif($child==2){
$chldselect2="selected";
}elseif($child==3){
$chldselect3="selected";
}elseif($child==4){
$chldselect4="selected";
}elseif($child==5){
$chldselect5="selected";
}
$returncontent=preg_replace("/{{(.*?)}}/e","$$1",$returncontent);
echo $returncontent;
?>