require('_lib/common.php'); $recaptcha_secret = '6Lc_cYgUAAAAAOyohlypa7mOuqtaobwdIEcz4fy_'; $email='maggieaheap@googlemail.com'; if( $_POST['continue'] and $_POST['nospam']==1 ){ global $recaptcha_secret; $errors = array(); if ($recaptcha_secret) { if( !$_POST['g-recaptcha-response'] ){ $errors[] = 'captcha'; } else { $data = array( 'secret' => $recaptcha_secret, 'response' => $_POST['g-recaptcha-response'] ); $verify = curl_init(); curl_setopt($verify, CURLOPT_URL, "https://www.google.com/recaptcha/api/siteverify"); curl_setopt($verify, CURLOPT_POST, true); curl_setopt($verify, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($verify, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($verify, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($verify); if (!$response['success']) { $errors[] = 'captcha'; } } } $errors = array_merge($errors, validate($_POST, array( 'title', 'fName', 'sName', 'email', 'address', 'phone', 'mobile', 'enquiry', ), true)); if( count( $errors ) ){ print json_encode($errors); exit; }elseif( $_POST['validate'] ){ print 1; exit; }else{ $body=''; foreach( $_POST as $k=>$v ){ $body.=$k.': '.$v."\n"; } $body=str_replace("\t",'',$body); $headers="From: auto@survivetrauma.co.uk\r\n"; $headers.='Return-Path: '.$_POST['email']."\r\n"; mail($email, 'Online Enquiry', $body, $headers); redirect("thankyou.html"); } } ?>
Please contact Maggie Heap for an appointment on 07802 888 164
or send us an email with your enquiry:
Havant - Hampshire
Friday, Saturday
London W2
Tuesday, Wednesday, Thursday
Full address details and directions are available upon request