"Name is required.", "highlight"=>"name"); if (!General::is_email_valid($email)) $errors[] = array("message"=>"Email is required and must be valid.", "highlight"=>"email"); 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 Submit Review form: Name: $name Phone: $phone Email: $email 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 Submit Review FORM [SG COPY]",$email_message, $headers); mail("contact_us@familymatrix.com","FamilyMatrix Submit Review 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("Submit Rewiew"); ?> build_body($onload_js); echo $page->build_head(); ?>

Submit Review


We would love to hear your experience with any of our products.

All of us at Family Matrix enjoy sharing stories from our customers. Please complete the below form and attached any photos that you would like to share.

Thanks from all of us at Family Matrix.



" /> " />
Name: ">
Email: ">
Phone: ">
Your Review:
 
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 submitting your review.
draw_flair(); echo $page->end_body(""); ?>