';
}
if ( empty($telephone) ) {
$error['telephone_error'] = '
Please enter your contact number.
';
}
if ( empty($house) ) {
$error['house_error'] = '
Please enter your house number or name.
';
}
if ( empty($postcode) ) {
$error['postcode_error'] = '
Please enter your postcode.
';
}
if ( empty($Mailing) ) {
$error['Mailing_error'] = '
Please choose yes or no.
';
}
// End of error checking, all fields covered.
if (!$error) {
header("Location: https://www.frescarestaurants.com/thank-you.html");
//sending this form as an email to the user with their mailing list details.
mail("info@frescarestaurants.com,design@barryzimmerman.co.uk",
"Feedback from Fresca Website",
"
The following has been entered on the feedback form:\n
----------------------------------\n
1. Based on your experience, how likely are you to recommend us to your family or friends? (1 Not - 10 Highly): $Recommendation
2. What is the most important reason behind your score above: $Reason
3. Based on your experience, would you return: $Return
4. How would you rate your experience at Fresca (1: Not Good | 5: Excellent) ?
4a. Food: $RatingFood
4b. Drinks: $RatingDrinks
4c. Service: $RatingService
4d. Staff friendliness: $RatingStaff
4e. Attentiveness: $RatingAttentiveness
4f. Value for money: $RatingValue
5. Is this your first visit to Fresca: $Visit
6. What time did you visit us: $TimeVisit
7. What date did you visit us: Day-$DateVisitDay Month-$DateVisitMonth
8. Tell us more about your visit to Fresca: $More
----------------------------\n
Personal Details
Forename: $Forename
Surname: $Surname
Email: $email
Telephone: $telephone
House Number: $house
Postcode: $postcode
9: Join Mailing List: $Mailing\n
----------------------------------\n
DO NOT REPLY TO THIS EMAIL ADDRESS.\n")
or print "could not send mail" ;
}
}
?>
Fresca Restaurant | Menus | Feedback