Book Appointment
Thanks! We've received your request and shall get back to you shortly.
include($path.'templates/credits.php'); ?>$path="../"; include($path."includes/header.inc.php"); $page_title= "Book Appointment"; $page='about-us'; $description='Book Appointment - Jelli - Representing Europe\'s finest designer children\'s wear'; $keywords=''; $show_form = true; include($path.'templates/header.html.php'); if(isset($_REQUEST['action']) && $_REQUEST['action'] == 'send') { $errors = array(); if($_REQUEST['name'] == '') { $errors['name'] = 'You did not enter your name'; } if($_REQUEST['email'] == '') { $errors['email'] = 'You did not enter your e-mail address'; } elseif(!filter_var($_REQUEST['email'], FILTER_VALIDATE_EMAIL)) { $errors['email'] = 'The email you entered doesn\'t appear to be correct.'; } if($_REQUEST['day'] == '' || !is_numeric($_REQUEST['day']) || $_REQUEST['day'] < 1 || $_REQUEST['day'] > 31) { $errors['day'] = 'You need to select a day for your appointment'; } if($_REQUEST['month'] == '' || !is_numeric($_REQUEST['month']) || $_REQUEST['month'] < 1 || $_REQUEST['month'] > 12) { $errors['month'] = 'You need to select a month for your appointment'; } if($_REQUEST['tel'] == '') { $errors['tel'] = 'You did not enter your telephone number'; } if(empty($errors)) { include($path.'classes/class.notify.php'); $notify = new notify(); $notify->subject = 'New Appointment'; $notify->message = "Hi,\n\n"; $notify->message .= "You've just received a request for a new booking at ".SITE_URL.". Details of this are below:\n\n"; $notify->message .= "------------------------------\n\n"; $notify->message .= "Name: ".$_REQUEST['name']."\n"; $notify->message .= "E-mail Address: ".$_REQUEST['email']."\n"; $notify->message .= "Date Requested: ".$_REQUEST['day'].'/'.$_REQUEST['month']."\n"; $notify->message .= "Telephone Number: ".$_REQUEST['tel']; $notify->send(); } } ?>
Thanks! We've received your request and shall get back to you shortly.
include($path.'templates/credits.php'); ?>