include "../includes/config.php"; $enquiry = $_GET['enquiry']; $action=$_REQUEST['action']; $posted=($_POST); foreach ($posted as $key => $value) {$$key=$value;} if ($action == "contact") { if ($enqType == 'weddings' || $enqType == 'functions' || $enqType == 'conference') { $recipient="events@steventonhousehotel.co.uk"; } else { $recipient="stay@steventonhousehotel.co.uk"; } $subject="Steventon House Contact form"; $displayFrom="Steventon House"; $emailFrom="noreply@steventonhousehotel.co.uk"; $msg = "\n
"; $msg .= "| CONTACT FORM | |
| Name: | ".$_POST['name']." |
| Enquiry Type: | ".$_POST['enqType']." |
| Telephone: | ".$_POST['phone']." |
| Email: | ".$_POST['email']." |
| Address: | ".$_POST['address']." |
| Guest Number: | ".$_POST['guestNum']." |
| Message: | ".$_POST['comments']." |