if ($_POST[submit]!="") { $from = $_POST['email']; $msg = "\nOnline booking request from Self-Catering Belfast Website\n"; $msg .= "\nName: " . $_POST[name] . ""; $msg .= "\nEmail: " . $_POST[email] . ""; $msg .= "\nPhone: " . $_POST[phone] . ""; $msg .= "\nNotes: " . $_POST[notes] . ""; mail ("info@selfcaterbelfast.co.uk","Online booking request from Self-Catering Belfast Website", $msg, "From : $from"); $from='info@selfcaterbelfast.co.uk'; $msg = "\nSelf-Catering Belfast\n"; $msg .= "\nThank you for contacting Self-Catering Belfast. We aim to respond within 24 hours to booking requests.\n"; mail ($_POST[email],"Self-Catering Belfast", $msg, "From : $from"); } ?>