=$phone1?>
\nOro Valley, AZ 85704 \n";
} elseif ($domain_name == "adoptionjourneys.org") {
echo "4065 E. Roberts Place \nTucson, AZ 85711 \n";
}
echo " \n";
echo $info_email ." \n";
?>
Call us!
Office Hours are
10am-6pm Mon-Fri;
Sat 10am-2pm
Toll Free! 877 542-8813 Phoenix AZ 480 751-1015 Tucson AZ 520 531-9931
Urgent 24/7 520 906-2892
|
$val) { $$key = stripslashes($val); }
foreach($_POST as $key=>$val) { $$key = stripslashes($val); }
if ($submit == "yes") {
$error_count = 0;
if ($name == "") {
$error_count++;
$error_msg['name'] = "Please enter your name.";
}
if ($phone == "") {
$error_count++;
$error_msg['phone'] = "Please enter your phone number.";
}
if ($email == "") {
$error_count++;
$error_msg['email'] = "Please enter your email address.";
}
if (!ereg( "^([-a-zA-Z0-9_\.]+)@([-a-zA-Z0-9_\.]+)\.([a-zA-Z]{2}|net|com|gov|mil|org|edu|int)$",$email) ) {
$error_count++;
$error_msg['email'] = "Not a valid email address.";
}
if ($comments == "") {
$error_count++;
$error_msg['comments'] = "Please enter your comments.";
}
if ($error_count == 0) { $spencer = "makeout"; }
}
if ($spencer == "makeout") {
$name = ucfirst($name);
//send email
$comments_x = $date."\n\n";
$comments_x .= "FROM: ".$name." ".$email."\n\n";
$comments_x .= "COMMENTS: ".$comments."\n\n";
$comments_x .= "NAME: ".$name."\n\n";
if (isset($address) && $address != "") {
$comments_x .= "ADDRESS: ".$address." ".$city." ".$state." ".$zip."\n";
}
if (isset($phone) && $phone != "") {
$comments_x .= "PHONE: ".$phone."\n";
}
$comments_x .= "\nContact me ".$contact.".\n";
//$headers = "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: ".$email."\n";
$headers .= "BCC: info@childfound.org\n";
mail($to,$subject,$comments_x,$headers);
$subject_y = "RE: ". $subject;
$comments_y = "Thank you for contacting ".$organization.". Your email has been received and you should hear back from us by the next business day. Please feel free to call us at anytime, ".$phone1.".";
$headers_y = "Content-type: text/html; charset=iso-8859-1\n";
$headers_y .= "From: ".$to."\n";
mail($email,$subject_y,$comments_y,$headers_y);
echo " Thank you ".$name.", Someone from ".$organization." will contact you promptly. \n";
echo "\n";
} else {
echo "\n";
}
?> |