|

We value your input.
Please fill out the form below so we may serve you properly.
if (!isset($fname)) $fname="";
if (!isset($lname)) $lname="";
if (!isset($company)) $company="";
if (!isset($school)) $school="";
if (!isset($address)) $address="";
if (!isset($city)) $city="";
if (!isset($state)) $state="";
if (!isset($zipcode)) $zipcode="";
if (!isset($birthdate)) $birthdate="";
if (!isset($phone)) $phone="";
if (!isset($email)) $email="";
if (!isset($comments)) $comments="";
if (!isset($country)) $country="";
if (!isset($purpose)) $purpose="";
if (!isset($action)) $action="none";
if (!isset($validated)) $validated=0;
# 1st things 1st
# test the look of the email address... !
if (eregi("^[_\.0-9a-z-]+@([0-9a-z][-0-9a-z\.]+)\.([a-z]{2,3}$)", $email, $check)) {
if (getmxrr($check[1].".".$check[2],$temp)) {
$validated=1;
}
$validated=1;
} else {
$validated=0;
}
# if form complete we email and thank you
if ($validated == 1) {
$filename = "../../data/feedback.txt";
$fd = fopen( $filename, "r" );
$current = fread( $fd, filesize( $filename ) );
fclose( $fd );
$filemessage = "$fname|$lname|$company|$birthdate|$address|$city|$state|$zipcode|$school|$email|$phone|$comments|$purpose";
$filemessage = ereg_replace("(\r\n|\n|\r)", " ", $filemessage);
$filemessage .= "\n$current";
if (file_exists("$filename")):
$cartFile = fopen("$filename","w+");
fputs($cartFile,$filemessage);
fclose($cartFile);
else:
$cartFile = fopen("$filename","w");
fputs($cartFile,$filemessage);
fclose($cartFile);
endif;
$content=stripslashes(stripslashes(">>>>\n\nRFID LAB: " . $purpose . "\nPhone: " . $phone . "\nName: " . $fname . " " . $lname . "\nCompany: " . $company . "\nAddress: " . $address . "\nCity: " . $city . ", " . $state . " " . $zipcode . "\nEmail: " . $email . "\n\nComments:\n" . $comments . "\n"));
$to="jeff.schaengold@ezegov.com";
$from="From: " . $email . "\nErrors-To: jeff.schaengold@ezegov.com\nContent-Type: text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: 8bit\r\nX-Mailer:";
mail($to, "RFID DoD EzeGov Feedback" . " " . $phone, $content, $from);
# mail($email, "RFID DoD EzeGov Feedback" . " " . $phone, $content, $from);
$content="This is your feedback to RFID DoD Ezegov: \n\nTo further communicate with us, please contact us at:\n\nwww.ezegov.com or 732-530-8516" . $content;
$from="From: RFID DoD Ezegov \nErrors-To: jeff.schaengold@ezegov.com\nContent-Type: text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: 8bit\r\nX-Mailer:";
mail($email, "RFID DoD EzeGov feedback confirmation", $content, $from);
print "Thank you for your feedback.";
} else {
# otherwise we show form
# if form was submitted we show comments in form
?>
} ?>
|