send_contact_info.php has been changed many times.
it has been as simple as:
<?php
mail("wdcockrell89@gmail.com", "test", "test body");
?>
and has changed to:
<?php
if(isset($_POST['email'])) {
$email_to = "wdcockrell89@gmail.com";
$email_subject = "Pinnacle contact info";
function died($error) {
echo "We are very sorry, but there were error(s) found with the form you submitted. ";
echo "These errors appear below.<br /><br />";
echo $error."<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();
}
if(!isset($_POST['name']) ||
!isset($_POST['Practice_Name']) ||
!isset($_POST['Email']) ||
!isset($_POST['Mailing_address'])) {
died('We are sorry, but there appears to be a problem with the form you submitted.');
}
$name = $_POST['name'];
$Practice_Name = $_POST['Practice_Name'];
$email_from = $_POST['Email'];
$Mailing_address = $_POST['Mailing_address'];
$error_message = "";
$email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
if(!preg_match($email_exp,$email_from)) {
$error_message .= 'The Email Address you entered does not appear to be valid.<br />';
}
$string_exp = "/^[A-Za-z .'-]+$/";
if(!preg_match($string_exp,$name)) {
$error_message .= 'The Name you entered does not appear to be valid.<br />';
}
if(!preg_match($string_exp,$Practice_Name)) {
$error_message .= 'The Practice Name you entered does not appear to be valid.<br />';
}
if(strlen($error_message) > 0) {
died($error_message);
}
$email_message = "Form details below.\n\n";
function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}
$email_message .= "Name: ".clean_string($name)."\n";
$email_message .= "Practice Name: ".clean_string($Practice_Name)."\n";
$email_message .= "Email: ".clean_string($email_from)."\n";
$email_message .= "Mailing Address: ".clean_string($Mailing_address)."\n";
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
?>
<www.pinnacleeducationservices.com>
Thank you for contacting us. We will be in touch with you very soon.
<?php
}
?>
perhaps it should be said that i did not write this code but edited it to reference the form more correctly. it is entirely possible my editing was the root of my problem, but i do not see why it redirects me to verygoods-2014.ru