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." "; $subject ="New enquiry has been received in our website www.newtirupurlodge.net"; $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.
"; $custsubject="Thanks for your Enquiry in www.newtirupurlodge.net"; $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.html")); $checkin=$_POST['checkin']; $checkout=$_POST['checkout']; $adult=$_POST['adult']; $child=$_POST['child']; $room=$_POST['noroom']; 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"; } if($room==1){ $roomselect1="selected"; }elseif($room==2){ $roomselect2="selected"; }elseif($room==3){ $roomselect3="selected"; }elseif($room==4){ $roomselect4="selected"; }elseif($room==5){ $roomselect5="selected"; }elseif($room==6){ $roomselect6="selected"; } $returncontent=preg_replace("/{{(.*?)}}/e","$$1",$returncontent); echo $returncontent; ?>