if(isset($_POST['Submit'])) { $name=htmlentities(strip_tags($_POST['name'])); $email=htmlentities(strip_tags($_POST['email'])); $mobile=htmlentities(strip_tags($_POST['mobile'])); $message=htmlentities(strip_tags($_POST['message'])); if(empty($name)) { $error="Please enter your name"; } else if(empty($email)) { $error="Please enter your email"; } else if(!filter_var($email,FILTER_VALIDATE_EMAIL)) { $error="Please enter valid email id"; } else if(empty($mobile)) { $error="Please enter your contact no"; } else if(!is_numeric($mobile)) { $error="Please enter your only number in contact no"; } else if(strlen($mobile)<10) { $error="Please enter only 10 digit in contact no"; } else if(empty($message)) { $error="Please enter message "; } else { $msg1='
Enquiry Detail |
|
Name | '.$name.' |
'.$email.' | |
Mobile | '.$mobile.' |
Message | '.$message.' |
424-425, 4th Floor, Metroplex East,
District Centre, Laxmi Nagar,
Delhi - 110092.
Contact No. : +91-9899 38 1574
Email: info@gratiaespl.com