To book your place on one of our holidays please fill out the form below.
Your place will be reserved upon receipt of a deposit. You will be sent further information via email.
"; $form = ""; $form .= "* required
"; if ($_POST){ if ($_POST['email_address']==''||$_POST['course']=='none'||$_POST['name']==''){ $highlight_text = 'Please fill out all of the required fields and resend.
'; $page_content = $form; }else { $course_id = (int)$_POST['course']; $courseObj = new Course($course_id); $course_details = $courseObj->getCourse($course_id); $message = "" . $_POST['name'] . ' (' . $_POST['email_address'] . ') has submitted the booking form. They are interested in the ' . $course_details['name'] . ' course.
'; $link = "http://shanticentre.com/retreats/admin_booking.php?mode=from_booking&c_id=".$course_id."&email=" . urlencode($_POST['email_address']) . "&name=" . urlencode($_POST['name']); $message .= ""; if ($_POST['friends']!=''){ $message .= '£50 offer - details of friends: ' . $_POST['friends'] . '
'; } if ($_POST['details']!=''){ $message .= 'Further information: ' . $_POST['details'] . '
'; } if ($_POST['single_supplement']){ $message .= 'Single supplement: Yes' . '
'; } // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: ' . $_POST['name'] . '<' . $_POST['email_address'] . '>' . "\r\n"; if (mail('rupertfox@gmail.com,stephbosanko@gmail.com', 'Shanticentre booking', $message, $headers)){ $highlight_text = 'Thank you! Your details have been sent via email and we will get back to you with a confirmation and more information as soon as we can.
'; $page_content = ''; }else{ $highlight_text = 'Thank you for filling out the form. Unfortunately there was a technical hitch and it wasn\'t possible to send your details. Please email us to let us know which course you were interested in attending.
Apologies for the inconvenience.
'; $page_content = ''; } } }else{ $page_content = $form; $highlight_text = $intro; } $main_image = 'valley.jpg'; $slideshow_images = array( 'decking.jpg', 'valley.jpg', 'flowers3.jpg' ); $sub_nav_items = false; $current_main_nav = 'Booking'; $current_sub_nav = false; $content_text = $page_content; $meta_description = 'Shanticentre yoga retreat centre in Abruzzo, Italy - book your place on one of our yoga holidays or yoga retreats'; $title = $meta_description; include('../application/controller.php'); ?>