include("lib/formfunctions.php");
include("contact-properties.php");
$value = array_merge($_GET, $_POST);
switch ($value['action']) {
case "Send Email":
AoHaddValues($value, $AoH, $debug);
$errors = AoHvalidate($AoH, $debug);
if ($errors >0) {
$msgtxt .= "Error! Please complete the highlighted fields.
";
if ($debug) { $msgtxt .= "
".$errors; }
} else {
$subject = "Ocean Eye Website Contact";
$message = buildEmailMsg($AoH);
mail("drchen@oceaneyesd.com", $subject, $message, "From: webmaster@oceaneye.com");
header("Location: contact-confirm.html");
}
break;
}
?>