require_once('HTML/Template/PHPLIB.php'); require_once('phpmailer/class.phpmailer.php'); require_once('emailvalidation/email_validation.php'); function email_box_validation($address) { $validate = new email_validation_class(); $validate->localhost = 'hoteldaisy.it'; $validate->localuser = 'info'; return ($validate->ValidateEmailAddress($address)<1 ? false : true); } $request_vars = array('nome', 'tel', 'mail', 'messaggio', 'privacy'); if (isset($_REQUEST['submit_contatto'])) { $check = true; if (get_magic_quotes_gpc()) foreach ($_REQUEST as $key => $value) $_REQUEST[$key] = stripslashes($value); foreach ($request_vars as $required) { if (!isset($_REQUEST[$required])) $_REQUEST[$required] = ''; $_REQUEST[$required] = trim($_REQUEST[$required]); if ($_REQUEST[$required]=='') $check = false; } if ($check) { foreach ($request_vars as $val) $replace['{'.$val.'}'] = $_REQUEST[$val]; $corpo_mail = str_replace(array_keys($replace), array_values($replace), file_get_contents('http://www.hoteldaisy.it/mails/mail_contatti.html')); $mail = new PHPMailer(); $mail->IsHTML(true); $mail->IsSMTP(); $mail->Host = 'mail.hoteldaisy.it'; $mail->Hostname = 'hoteldaisy.it'; $mail->SetLanguage('it',''); $mail->Subject = 'Contatto da HOTELDAISY.IT'; $mail->Body = $corpo_mail; if (!email_box_validation($_REQUEST['mail'])) $_REQUEST['mail'] = 'badreplies@cubicdesign.it'; $mail->From = $_REQUEST['mail']; $mail->FromName = $_REQUEST['nome']; $mail->AddAddress('info@hoteldaisy.it'); $mail->Send(); $_REQUEST = array(); $submit_status = true; } else $submit_status = false; } else foreach ($request_vars as $var) $_REQUEST[$var] = ''; ?>
Dear Customer, we thank you for visiting our internet site and for virtually visiting our establishment. We hope that you found this pleasant and interesting.
Through this page you can request further information in a simple and fast manner. Our staff will be at your service and delighted to respond as quickly as possible.
For further information we ask you to read the section relating to terms and conditions.
Finally, to demonstrate our respect for your privacy, we invite you to read the following document relating to the law on privacy and the processing of your personal data. Acceptance of its terms is required to send the INFORMATION REQUEST form which is shown alongside.
If you would like to request a reservation or simply want to have further information you can contact us by using the appropriate form.
if (isset($submit_status) && !$submit_status): ?>

INFORMATION REQUEST FORM
All fields are mandatory.
Hotel Daisy - hotel 3 star a Marina di Massa
ADDRESS: Via Verona, 12
CITY: Marina di Massa (MS - ITALY)
POSTCODE: 54037
TELEPHONE: +39 0585 240108
FAX: +39 0585 240109
E-MAIL: info@hoteldaisy.it