if($_SERVER['REQUEST_METHOD'] == "POST"){ $email = $_POST['Email']; include_once($_SERVER['DOCUMENT_ROOT']."inc/mail_checker.php"); # Fields to Avoid $ex=array(); $ex[]="submit"; # Where submit is the name of the submit button. # iterate the $_POST array foreach ($_POST as $key=>$value) { if (!in_array($key, $ex)) { $message.=$key.": " . $value . "\n"; } } if (mail("info@lyonbutler.com","Lyon & Butler Request Info Form",$message,"From: $email")) { $msg = "
\n
\nThank you."; } else { $msg = "
\n
\nPlease try emailing us instead."; } } ?>
|
||||||||||||||||||||||
© 2006 Lyon & Butler Insurance Brokers Ltd. l Disclaimer l Privacy Policy l Commission Disclosure |
Web site design by Images Graphics |