% $gooddata = 1; include $_SERVER['DOCUMENT_ROOT'].'/includes/validate_email.php'; if (isset($_POST["sendit"])) { if (empty($input["name"]) || ($input["contact_type"]=="phone" && empty($input[phone])) || ($input["contact_type"]=="email" && !validate_email($input[email]))) { $gooddata = 0; unset($sendit); } } if (isset($sendit)) { if (empty($input["email"])) $input["email"] = "not provided"; if (empty($input["phone"])) $input["phone"] = "not provided"; $message = "The following Information Request was submitted through the Northern Financial Collections web site on "; $message .= date("M d, Y"); $message .= " at "; $message .= date("h:i a"); $message .= ". Name: ".$input["name"]." City: ".$input["city"]." Preferred Contact Method: ".$input["contact_type"]." Email: ".$input["email"]." Phone: ".$input["phone"]." between ".$input["start_hour"].":".$input["start_minute"]." ".$input["start_period"]. " and ".$input["end_hour"].":".$input["end_minute"]." ".$input["end_period"]." Comments: ".$input["comments"]."\n"; require $_SERVER['DOCUMENT_ROOT'].'/includes/n_mail.php'; if ($input["email"] == "not provided") $input["email"] = 'financial.coll@comcast.net'; n_mail($input["email"], "financial.coll@comcast.net", "[NFC Web] Information Request", $message, "Mime-Version: 1.0"); header("Location: /contact/thankyou.html"); } %>
![]() |
![]() |
|
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||