$path="../";
include($path."includes/header.inc.php");
$page_title= "Feedback";
$page='feedback';
$description='Feedback - 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['tel'] == '') {
$errors['tel'] = 'You did not enter your telephone number';
}
if($_REQUEST['msg'] == '') {
$errors['msg'] = 'You must enter a message';
}
if(empty($errors)) {
include($path.'classes/class.notify.php');
$notify = new notify();
$notify->subject = 'Customer Feedback';
$notify->message = "Hi,\n\n";
$notify->message .= "You've just received this message from the feeback form 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: ".date('Y-m-d H:i:s')."\n";
$notify->message .= "Telephone Number: ".$_REQUEST['tel'];
$notify->message .="\n\n------------------------------\n\n";
$notify->message .= $_REQUEST['msg'];
$notify->send();
$show_form = false;
}
}
?>
Feedback
Please give us any feedback you might have, positive or negative. We love to know what we're doing right and we need to fix what we're doing
wrong! We are grateful to the people who help us make Jelli special.
Thank You
Thanks for your feedback. We'll get back to you shortly.
include($path.'templates/credits.php'); ?>
include($path.'templates/footer.html.php'); ?>