Required fields are marked with
*';
if(isset($_POST["sub"])){
$vars= array("fullname", "stadd", "zip", "email", "phone", "msg");
foreach($vars as $var){
if(isset($_POST[$var]))
$$var = $_POST[$var];
else
$$var = '';
}
if($fullname==''||$stadd==''|| (!preg_match("/[0-9]{5}$/", $zip)) || $email=='')
$errmsg='
Please complete all fields marked with a *.';
else{
$mailsubject="Travel Health";
$mailto = "tim@incomesafety.com";
$sendstr="Name:".$fullname;
$sendstr=$sendstr."\nEmail: ".$email;
$sendstr=$sendstr."\nPhone: ".$phone;
$sendstr=$sendstr."\nAddress: ".$stadd;
$sendstr=$sendstr."\nZip: ".$zip;
$sendstr=$sendstr."\nMessage:".$msg;
$result = mail($mailto,$mailsubject,$sendstr,"From:".$email);
$errmsg='
Thank you for your message,
we will contact you shortly';
}}
?>
If you have any questions about these products, would like to set up a
free consultation, please complete the form below..
Tim Barton,ChFC,
Wisconsin, USA