Product Guide What's New Design Guide Departments and Alumni
Design GuideCompany BackgroundEnvironmentally Bound Recycling ProgramHow to Purchase Our ProductsNew NewsTammy's Closeout Sale
"; } return $str; } function checkboxistrue($x) { if ($x) return "checked"; else return ""; } function optionistrue($val1,$val2) { //echo "($val1==$val2)"; if ($val1==$val2) return "selected"; else return ""; } while (list($key, $val) = @each($HTTP_GET_VARS)) { $GLOBALS[$key] = $val; } //HTTP_POST_VARS while (list($key, $val) = @each($HTTP_POST_VARS)) { $GLOBALS[$key] = $val; } //HTTP_POST_FILES while (list($key, $val) = @each($HTTP_POST_FILES)) { $GLOBALS[$key] = $val; } //$HTTP_SESSION_VARS while (list($key, $val) = @each($HTTP_SESSION_VARS)) { $GLOBALS[$key] = $val; } // $SendInfo,$Name,$Organization,$Street1,$Street2,$City, $State,$Zip,$Country,$Phone,$Fax,$Email,$HowDidYouHear,$CommentBox; // $PhoneMe, $FaxMe, $EmailMe function geturlpassvars() { global $SendInfo,$Name,$Organization,$Street1,$Street2,$City, $State,$Zip,$Country,$Phone; global $Fax,$Email,$HowDidYouHear,$CommentBox, $PhoneMe, $FaxMe, $EmailMe; $str=$str."SendInfo=".urlencode($SendInfo)."&"; $str=$str."Name=".urlencode($Name)."&"; $str=$str."Organization=".urlencode($Organization)."&"; $str=$str."Street1=".urlencode($Street1)."&"; $str=$str."Street2=".urlencode($Street2)."&"; $str=$str."City=".urlencode($City)."&"; $str=$str."State=".urlencode($State)."&"; $str=$str."Country=".urlencode($Country)."&"; $str=$str."Phone=".urlencode($Phone)."&"; $str=$str."Fax=".urlencode($Fax)."&"; $str=$str."Email=".urlencode($Email)."&"; $str=$str."HowDidYouHear=".urlencode($HowDidYouHear)."&"; $str=$str."CommentBox=".urlencode($CommentBox)."&"; $str=$str."PhoneMe=".urlencode($PhoneMe)."&"; $str=$str."FaxMe=".urlencode($FaxMe)."&"; $str=$str."EmailMe=".urlencode($EmailMe)."&"; return $str; } function getdisplayinfo() { global $SendInfo,$Name,$Organization,$Street1,$Street2,$City, $State,$Zip,$Country,$Phone,$Fax,$Email,$HowDidYouHear,$CommentBox; global $PhoneMe, $FaxMe, $EmailMe; $info="
"; } function VerifyEmail($email) { if(eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$",$email)) return TRUE; else return FALSE; } function showformfield($var, $val, $x="") { $str=""; $str=$str."
$var"; if ($x=="yn") { if ($val) $str=$str."YES"; else $str=$str."no"; } else { if (strlen($val)>0) $str=$str.$val; else $str=$str."no answer"; $str=$str."
"; //$info=$info.showformfield("Send Info?", $SendInfo,"yn"); $info=$info.showformfield("Name", $Name,""); $info=$info.showformfield("Organization", $Organization,""); $fulladdress=""; if (strlen($Street1)>0) $fulladdress=$fulladdress.$Street1; if (strlen($fulladdress)>0 && strlen($Street2)>0) $fulladdress=$fulladdress."
".$Street2; elseif (strlen($Street2)>0) $fulladdress=$fulladdress.$Street2; if (strlen($City)>0 || strlen($State)>0 || strlen($Zip)>0) { if (strlen($fulladdress)>0) $fulladdress=$fulladdress."
"; if (strlen($City)>0) { $fulladdress=$fulladdress.$City; if (strlen($State)>0) { $fulladdress=$fulladdress.", "; } } if (strlen($State)>0) $fulladdress=$fulladdress.$State; if (strlen($Zip)>0 && (strlen($City)>0||strlen($State)>0)) $fulladdress=$fulladdress.$Zip; } if (strlen($fulladdress)>0 && strlen($Country)>0) $fulladdress=$fulladdress."
".$Country; elseif (strlen($Country)>0) $fulladdress=$fulladdress.$Country; $info=$info.showformfield("Address", $fulladdress,""); $info=$info.showformfield("Phone", $Phone,""); $info=$info.showformfield("Fax", $Fax,""); $info=$info.showformfield("Email", $Email,""); $info=$info.showformfield("HowDidYouHear", $HowDidYouHear,""); $info=$info.showformfield("CommentBox", $CommentBox,""); //$info=$info.showformfield("Phone Me?", $PhoneMe,"yn"); //$info=$info.showformfield("Fax Me?", $FaxMe,"yn"); // $info=$info.showformfield("Email Me?", $EmailMe,"yn"); $info=$info."
"; return $info; } if ($action=="formsubmitted") { ///////////////////// check for errors $errors="
"; if (strlen($Name)<1) { $errors=$errors."Please Enter a Name
"; } if (strlen($Organization)<1) { $errors=$errors."Please Enter an Organization
"; } if (strlen($Street1)<1) { $errors=$errors."Please Enter an Address
"; } if (strlen($City)<1) { $errors=$errors."Please Enter your City
"; } if (strlen($Zip)<1) { $errors=$errors."Please Enter your Zip
"; } if (strlen($Phone)<1) { $errors=$errors."Please Enter a Telephone Number
"; } if (strlen($Email)<1) { $errors=$errors."Please Enter an Email
"; } if (strlen($Email)>0 && (!(VerifyEmail($Email)>0))) { $errors=$errors."Please Enter a valid Email Address
"; } //session_start(); if(!empty($_SESSION['freecap_word_hash']) && !empty($_POST['word'])) { // all freeCap words are lowercase. // font #4 looks uppercase, but trust me, it's not... if($_SESSION['hash_func'](strtolower($_POST['word']))==$_SESSION['freecap_word_hash']) { // reset freeCap session vars // cannot stress enough how important it is to do this // defeats re-use of known image with spoofed session id $_SESSION['freecap_attempts'] = 0; $_SESSION['freecap_word_hash'] = false; // now process form // now go somewhere else // header("Location: somewhere.php"); $word_ok = true; } else { $word_ok = false; } } else { $word_ok = false; } if($word_ok!==false) { //if($word_ok=="yes") //{ // echo "you got the word correct, rock on.
"; //} else { // echo "sorry, that's not the right word, try again.
"; //} } if (!$word_ok) { $errors.="You got the security image verification word wrong. Please try again
"; } if ($errors!="
") { //echo "RUNNING THIS"; echo "".$errors."
"; $action=""; } else { $info=getdisplayinfo(); ///////////////////// send mail ////////////////////////////////////////////////////// // To send HTML mail, you can set the Content-type header. $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; // additional headers $headers .= "From: Four Point \r\n"; $subject="Four Point Request Form Submitted : $Name"; $message="Thank You For Submitting Your Information

$info"; //send the email if (strlen($Email)>0 && $SendInfo) mail($Email, $subject, nl2br(stripslashes($message)),$headers); mail("fourpoint@binders.com", $subject, nl2br(stripslashes($message)),$headers); $url=$PHP_SELF."?".geturlpassvars()."action=formsubmitted2"; // redirect echo ""; die; } } elseif ($action=="formsubmitted2") { ///////////////redirect confirmation page $info=getdisplayinfo(); echo "Form Sucessfully Completed.

Thank You


$info"; } if (strlen($action)<1 || strlen($errors>0)) { //
?>
"Alabama","AK"=>"Alaska","AZ"=>"Arizona","AR"=>"Arkansas","CA"=>"California","CO"=>"Colorado","CT"=>"Connecticut","DE"=>"Delaware","DC"=>"D.C.","FL"=>"Florida","GA"=>"Georgia","HI"=>"Hawaii","ID"=>"Idaho","IL"=>"Illinois","IN"=>"Indiana","IA"=>"Iowa","KS"=>"Kansas","KY"=>"Kentucky","LA"=>"Louisiana","ME"=>"Maine","MD"=>"Maryland","MA"=>"Massachusetts","MI"=>"Michigan","MN"=>"Minnesota","MS"=>"Mississippi","MO"=>"Missouri","MT"=>"Montana","NE"=>"Nebraska","NV"=>"Nevada","NH"=>"New Hampshire","NM"=>"New Mexico","NJ"=>"New Jersey","NY"=>"New York","NC"=>"North Carolina","ND"=>"North Dakota","OH"=>"Ohio","OK"=>"Oklahoma","OR"=>"Oregon","PA"=>"Pennsylvania","RI"=>"Rhode Island","SC"=>"South Carolina","SD"=>"South Dakota","TN"=>"Tennessee","TX"=>"Texas","UT"=>"Utah","VT"=>"Vermont","VA"=>"Virginia","WA"=>"Washington","WV"=>"West Virginia","WI"=>"Wisconsin","WY"=>"Wyoming"); ?>
">
 

Please send me Four Points Products information.

 

Fields marked with an * are required

 

* Your Name

?>
* Organization ?>
* Street Address 1 ?>
Street Address 2 ?>
* City, State echo " "; echo ""; ?>
* Zip ?>
Country ?>
* Telephone ?>
Fax ?>
* Email Address ?>
How did you hear about us? ?>
 
If you have a question, comment or suggestion about our products, please type it here. We will respond to you quickly.
 

If you can't read the word, click here
Please enter the word above