Assaroe Falls Feedback:
if(isset($_POST['submit_1'])) { // Data cleaning function function clean_data($string) { if (get_magic_quotes_gpc()) { $string = stripslashes($string); } $string = strip_tags($string); return mysql_escape_string($string); } // Mail header removal function remove_headers($string) { $headers = array( "/to\:/i", "/from\:/i", "/bcc\:/i", "/cc\:/i", "/Content\-Transfer\-Encoding\:/i", "/Content\-Type\:/i", "/Mime\-Version\:/i" ); $string = preg_replace($headers, '', $string); return strip_tags($string); } $name = clean_data($_POST['title'].' '.$_POST['first_name'].' '.$_POST['last_name']); $email = clean_data($_POST['email']); $review = clean_data($_POST['review']); $origin = clean_data($_POST['origin']); $purpose = clean_data($_POST['purpose']); $name = remove_headers($name); $email = remove_headers($email); $review = remove_headers($review); $time = time(); // mail with the query $to = 'breda@assaroefalls.com'; $from = $email; $subject = 'Feedback from your website'; $send_message = "You have received some feedback from the website.\n\nFrom: ".$name."\nEmail: ".$email."\nReview: ".strip_tags($review)."\n\nView all feedback and approve for publishing (or delete) here: www.assaroefalls.com/af_admin/"; $headers = "From: <" . $from . ">\n"; $headers .= "Return-Path: <" . $from . ">\n"; // Return path for errors $headers .= "X-Sender: <" . $from . ">\n"; if(mail($to, $subject, $send_message, $headers)) { echo 'Thank you!
Thank you for submitting your review of Assaroe Falls. All feedback is useful to us in helping to improve the service and facilities we have to offer.
We hope you enjoyed your stay with us and that you will be able to visit again!
'; // insert into database $insert = mysql_query("INSERT into af_feedback (date, name, email, origin, purpose, review, publish) VALUES ('".$time."', '".$name."', '".$email."', '".$origin."', '".$purpose."', '".$review."', 'no')") or die(mysql_error()); } else { echo 'Problem sending your feedback!
Sorry, but there seemed to be a problem sending your feedback. Probably the best thing to do would be to write directly to us using info@assaroefalls.com, or call us on +353 (0)71 98 22 123
'; } } else { ?>Please use the following rating system to give us your opinion on how we measured up during your holiday! If you would like to write a full review, please write any comments in the boxes provided below.
To view all of our current feedback, click here
Rate the apartments
Quality of apartments:
echo rating_bar('rooms',5); ?>Service:
echo rating_bar('service',5); ?>Cleanliness:
echo rating_bar('cleanliness',5); ?>Value for money:
echo rating_bar('value',5); ?>Rate the experience
Local Activities:
echo rating_bar('activities',5); ?>Location:
echo rating_bar('location',5); ?>Would you recommend Assaroe Falls?
echo rating_bar('recommend',5); ?>Assaroe Falls Reviews
If you would like to write a review for possible use on the website, please complete the short form below:
} ?>