$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"); } } ?> Maggie Heap Psychotherapy | Contact Maggie Heap

Contact Maggie Heap

Please contact Maggie Heap for an appointment on 07802 888 164

or send us an email with your enquiry:

Title:

First Name:

Surname:

Email:

Address:

Telephone:

Mobile:

Enquiry:

 

 

Contact Maggie Heap

Therapy Consultations

Havant - Hampshire
Friday, Saturday

London W2
Tuesday, Wednesday, Thursday

Full address details and directions are available upon request

© Copyright 2009 Maggie Heap Psychotherapy

Website Design: OS WebDesign Ltd