php
if($_POST['name'] && isset($_POST['phone'] && isset($_POST['whatsapp'] && isset($_POST['email'] && isset($_POST['adult'] && isset($_POST['child'] && isset($_POST['date']
&& isset($_POST['message']))
if(!empty($_POST['name']) && !empty($_POST['phone']) && !empty($_POST['whatsapp']) && !empty($_POST['email']) && !empty($_POST['adult']) && !empty($_POST['child']) &&
!empty ($_POST['date']) && !empty($_POST['message']))
$name= $_POST['name'];
$phone= $_POST['phone'];
$whatsapp= $_POST['whatsapp'];
$email= $_POST['email'];
$adult= $_POST['adult'];
$child= $_POST['child'];
$date= $_POST['date'];
$message= $_POST['messsage'];
if ('!fiilter_var($email, filter_validate_email')){
echo 'kindly provide valid email';}
else {
$body= $name."\n" .$phone."\n". $whatsapp."\n".$email."\n".$adult."\n".$child."\n".$date."\n".$message;
if(('Info@safeadventure.net' , 'website response' ,$body ,'from:response@mywebsite.net')){
echo 'thanks for contacting us.';
else {
echo 'there is a problem in mail.';
}
}
else{
echo'all fields are required.';
}
else{
echo'not ok';
}
?>
safeadventure Desert Safari
|
|
|
|
Want to Book a Tour Today?
|
|
Photo Gallery
Discover Dubai: book tours & activities online at the best prices guaranteed! Easy online booking. Fast & Easy booking. VIP access. Easy booking. Lowest prices. 25,000 Activities. Best price guarantee. Best selection. 24 hour customer service. Attraction tickets.
BOOK NOW: +971556290519
|
|
|
Copyright © 2018, safeadventure desert safari
|
| |