require_once('../include/validation.php');
$form = new FormValidation('hotels_form','submit');
$form->addRequiredField('Name:', 'name');
$form->addRequiredField('Phone:', 'phone');
$form->addRequiredField('Email:', 'email','email');
$form->addRequiredField('Country:', 'country','select','None');
if ($form->isSubmitted())
{
if ($form->validate())
{
if($_POST['adults']=='0') $validatemsg = "You must at least have one adult!
";
else
{
$msg_result = $form->sendMailTemplate('../templates/mailform/hotels.tpl',
$_POST['name'],$_POST['email'],
'info@classytravel.ca', 'Hotels Application Form',
'classytravel.ca');
if(strlen($msg_result)==0)
{
$msg_result = "
Thank you for submitting your request. A representative will get back to you shortly.
";
echo "";
}
}
}
}
$form->display();
?>
Voyage Classy Travel - Hotels
|
|
| |
 |
|
| Hotel Applicaton Form |
|
Book Online (coming soon) |
|
| |
|
|
|
|
|
|
|
Copyright © 2005 - All
rights reserved - Designed by
Echo-Stream |
|
|
| |
|
|
 |
|