"; throw new Exception($error); } foreach ($_POST as $key => $value) { if (preg_match('/www\.|http:|https:/i', $value)) { $error .= "URLs are not allowed!\n
"; throw new Exception($error); break; } } if (empty($_POST['Name'])) { $error .= "Please tell us your name\n
"; } if (empty($_POST['Phone'])) { $error .= "Please enter your phone number\n
"; } if (empty($_POST['Email'])) { $error .= "Please enter a valid email address\n
"; } if (empty($_POST['Address'])) { $error .= "Please enter your address\n
"; } if ($_POST['Info consent'] != "on") { $error .= "You need to consent to us collecting the information or we can't process your booking\n
"; } if ($_POST['BBConsent'] != "on") { $error .= " We can't complete your booking unless you consent to your information being shared with Balanced Body\n
"; } if (empty($_POST['Date of Birth'])) { $error .= "Please enter your date of birth\n
"; } if (empty($_POST['Emergency'])) { $error .= "Please enter emergency contact details\n
"; } if (empty($_POST['ExpProfile'])) { $error .= "Please tell us something about your experience\n
"; } if ($_POST['Terms'] != "on") { $error .= "You must read and agree our terms\n
"; } if (empty($_POST['CourseSelect'])) { $error .= "Please choose a specific course\n
"; } if ($_POST['CourseSelect'] == "Select Course") { $error .= "Please choose a specific course\n
"; } if (!empty($error)) { throw new Exception($error); } $message .= $eol; $message .= "IP Address : "; $message .= $_SERVER['REMOTE_ADDR']; $message .= $eol; foreach ($_POST as $key => $value) { if (!in_array(strtolower($key), $internalfields)) { if (is_array($value)) { $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . $eol; } else { $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . $eol; } } } $body = 'This is a multi-part message in MIME format.'.$eol.$eol; $body .= '--'.$boundary.$eol; $body .= 'Content-Type: text/plain; charset=UTF-8'.$eol; $body .= 'Content-Transfer-Encoding: 8bit'.$eol; $body .= $eol.stripslashes($message).$eol; if (!empty($_FILES)) { foreach ($_FILES as $key => $value) { if ($_FILES[$key]['error'] == 0) { $body .= '--'.$boundary.$eol; $body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol; $body .= 'Content-Transfer-Encoding: base64'.$eol; $body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol; $body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol; } } } $body .= '--'.$boundary.'--'.$eol; if ($mailto != '') { mail($mailto, $subject, $body, $header); } header('Location: '.$success_url); } catch (Exception $e) { $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $e->getMessage(), $errorcode); echo $errorcode; } exit; } ?> Pilates Course Booking

PILATES COURSE BOOKING

COURSE BOOKING
Before you continue with this Course Booking you should review our
Terms of Booking
Please select from this dropdown list making sure you choose the correct course:
This form collects personal information to enable us to contact you to address your enquiry. Check out our Privacy Policy to read how we protect and manage your submitted data.
I have read and agree the Terms of Booking

I consent to Purely Pilates collecting the information on this form to process my booking.

I consent to an international transfer of the information on this form, from Purely Pilates to Balanced Body, USA.

After you submit the course booking form, a deposit of £150 is required to secure your place. There is a Pay Now button for the deposit on the page that will appear after you click submit. Please let us know if you would like to pay the deposit another way.