function si($text)
{
return htmlspecialchars(trim($text));
}
reset ($HTTP_POST_VARS);
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
$v = $key;
$$v = si($val);
}
if (getenv("REQUEST_METHOD") != "POST") {
//show loaded form
}
else {
//process submitted form
if (!$ContactName) $error = "Please enter your name or the name of the appropriate contact person.
";
if (!$Phone) $error .= "Please enter your phone number.
";
if (!$EMail) {
$error .= "Please enter your e-mail address.
";
}
else if (!ereg("^(.+)@(.+)\\.(.+)$", $EMail)) {
$error .= "Please enter a valid e-mail address.
";
}
else if (ereg(" ", $EMail)) {
$error .= "Please enter a valid e-mail address.
";
}
if (!$error) {
//get ready to send e-mail
//plaintext
$plaintext = "The following information has been submitted using the Information Request Form:
Contact Name $ContactName
Company $Company
Address $Address
City $City
State/Province $State
ZIP Code/Postal Code $ZIPCode
Phone $Phone
E-Mail $EMail
Questions & Comments
$Comments
";
$plaintext = stripslashes($plaintext);
$plaintext = ereg_replace('>', '>', $plaintext);
$plaintext = ereg_replace('<', '<', $plaintext);
$plaintext = ereg_replace('"', "\"", $plaintext);
$plaintext = ereg_replace('&', '&', $plaintext);
mail("sales@seriation.com", "Information Request Form", $plaintext);
$finished = 1;
}
}
?>
![]() |
|
|
Contact UsSERIATION® CTS and SERIATION® STS
Physical Address
412 Tarrow Street College Station, Texas 77840 Mailing Address PO Box 10571 College Station, Texas 77842-0751 Phone (979) 696-6373 Fax (501)421-7366 sales@seriation.com
| ![]() |
||||||||||||||||||||||||||||||||||
© 2004 - 2006, Zajonc Corporation All Rights Reserved | ![]() |