$value) { $get[$key] = filter($value); } foreach($_POST as $key => $value) { $post[$key] = filter($value); } if(isset($_POST['doSaveContact'])) { if($_POST['doSaveContact'] == 'Send Message') { $secretKey = "6LfYwQ8UAAAAAPW4lO0Za6x0cr1Y_Sjit_VUsN2t"; $responseKey = $_POST['g-recaptcha-response']; $userIP = $_SERVER["REMOTE_ADDR"]; $url = "https://www.google.com/recaptcha/api/siteverify?secret=$secretKey&response=$responseKey&remoteip=$userIP"; $response = file_get_contents($url); $response = json_decode($response); if (!$response -> success) { $err[] = "Image Verification Fail Please Retry"; } if($_POST['email']=='' OR $_POST['name']=='' OR $_POST['mobile']=='' OR $_POST['subject']=='' OR $_POST['comment']=='') { $err[] = "Please fill all the required detail & try again"; } $name=$_POST['name']; $email=$_POST['email']; $mobile=$_POST['mobile']; $subject=$_POST['subject']; $comment=$_POST['comment']; $ip=$_SERVER['REMOTE_ADDR']; date_default_timezone_set('Asia/Kolkata'); $tracking_id=date('dmY').rand(10000000,99999999); $submit_date=$date = date('Y-m-d'); $submit_date_time=date('Y-m-d H:i:s'); if(empty($err)) { if(isset($_COOKIE['visitor_id'])) { $visitor_id=$_COOKIE['visitor_id']; } else { $visitor_id="NA"; } $statement = $db->prepare('INSERT INTO contact_us (tracking_id, visitor_id, name, email, mobile, subject, massage, submit_date, submit_date_time, ip) VALUES (:tracking_id, :visitor_id, :name, :email, :mobile, :subject, :massage, :submit_date, :submit_date_time, :ip)'); $statement->execute(['tracking_id' => $tracking_id, 'visitor_id' => $visitor_id, 'name' => $name, 'email' => $email, 'mobile' => $mobile, 'subject' => $subject, 'massage' => $comment, 'submit_date' => $submit_date, 'submit_date_time' => $submit_date_time, 'ip' => $ip]); $msg[] = "You are getting response very soon please check spam mail also."; } } } ?> OUR OFFICE LOCATION , OUR CONTACT NUMBER OUR CONTACT E-MAIL Interested in discussing? All the field are required " method="post" id="commentform" class="form-light" role="form">
,
All the field are required