"Name is required.", "highlight"=>"name"); if (!General::is_email_valid($email)) $errors[] = array("message"=>"Email is required and must be valid.", "highlight"=>"email"); if ($subject == "") $errors[] = array("message"=>"Subject is required.", "highlight"=>"subject"); if ($message == "") $errors[] = array("message"=>"Message is required.", "highlight"=>"message"); // captcha $resp = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) $errors[] = array("message"=>"The reCaptcha was not input correctly.", "highlight"=>"recaptcha"); if (count($errors)>0) { $onload_js = " onLoad='show_error();'"; foreach($errors as $some_error) { $highlight_js .= " document.getElementById('".$some_error["highlight"]."').style.border='2px solid red';"; $alert .= $some_error["message"]."\\n"; } $error_js .= " "; } else { // ok, so send email $boundary = 'FM' . md5( uniqid ( rand() ) ); $headers = "From: \"Web Contact\"\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\""; $email_body = "--".$boundary."\n"; $email_body .= "Content-type: text/plain; charset=\"US-ASCII\" \n Content-transfer-encoding: 7bit\n\n"; $email_body .= "A Visitor to The Family Matrix web site just filled out the contact form: Name: $name Phone: $phone Email: $email Subject: $subject Message: $message"; $file = SITE_PATH."/tmp/".$formarray["file_upload_name"]; $email_body2 = ""; if (file_exists($file)) { $handle = fopen($file, "r"); $contents = fread($handle, filesize($file)); fclose($handle); $email_body2 .= "\n--".$boundary . "\n"; $email_body2 .= "Content-type: ".$formarray["mime_type"].";\n\tname=\"".$formarray["file_upload_name"]."\";\n"; $email_body2 .= "Content-disposition: attachment;\n\tfilename=\"".$formarray["file_upload_name"]."\"\n"; $email_body2 .= "Content-transfer-encoding: base64\n\n"; $email_body2 .= chunk_split(base64_encode($contents))."\n"; } $email_message = General::fixtext($email_body,"email").$email_body2; // mail("scott@1127web.com","FamilyMatrix Request Custom Design FORM [SG COPY]",$email_message, $headers); mail("contact_us@familymatrix.com","FamilyMatrix Request Custom Design Form Submission",$email_message, $headers); $form_submitted = true; // send response if thye filled in email - we know the email is valid if it isn't blank if ($email != "") { $headers = 'From: Order desk ' . "\r\n"; $additional_params = "-forderdesk@familymatrix.com"; mail($email, "Auto Response from Family Matrix","Thanks for contacting Family Matrix. We will contact you within two business days.", $headers, $additional_params); } } } // begin page echo $page->build_start("Request Custom Design"); ?> build_body($onload_js); echo $page->build_head(); ?>

Request Custom Design


Family Matrix has capabilities to print most any design on our quality shirts and mugs. Forward artwork along with your requirements and we will get back to you within one business day.

Please submit in format PDF, EPS, AI, PSD or JPG.

Thanks for your interest in Family Matrix products.



" /> " />
Name: ">
Email: ">
Phone: ">
Subject: ">
Message:
 
Search for a File Here:
File "" uploaded. Press SUBMIT to continue,
Click 'Browse' then 'Upload File'. Allowable file types: PDF, EPF, AI, PSD, or JPG.


Thank you for contacting us for your custom design.

You will hear from us within two business days.
draw_flair(); echo $page->end_body(""); ?>