$stop = 0;
if ($action=="send") {
if (empty($name) || empty ($company) || empty ($phone) || empty ($email) ) {
?>
Please enter all of the information requested.
}
elseif (!ereg("@",$email)) {
?>
Please enter a valid email address.
}
else { // send mail
$body = "The following facility has requested information from MEDREC: \n\n";
if (!empty($name)) { $body .= "NAME: ".$name."\n"; }
if (!empty($company)) { $body .= "COMPANY: ".$company."\n"; }
if (!empty($phone)) { $body .= "PHONE: ".$phone."\n"; }
if (!empty($altphone)) { $body .= "ALT PHONE: ".$altphone."\n"; }
if (!empty($email)) { $body .= "EMAIL: ".$email."\n\n"; }
if (!empty($besttime)) { $body .= "BEST TIME: ".$besttime."\n\n"; }
if (!empty($comments)) { $body .= "COMMENTS: ".$comments."\n"; }
$stop=1;
$fromline = "From: " .$name." <".$email.">\nCc: medrec@haleymarketing.com\n";
mail("medrec-pt@medrec-pt.com","Inquiry from MEDREC Website - Facility",$body,$fromline);
?>
 |
85 NE LOOP 410, SUITE 610, SAN ANTONIO, TX 78216 P: (800) 437-7560
|
 |
 |
| | | | | | | | |
©2006 MEDREC. All rights reserved |
|
}
}
if ($stop==0) {
?>