setExpectedHostname($expected_hostname)->verify($gRecaptchaResponse, $remoteIp); $recaptcha_verification_success = $recaptcha_verification->isSuccess(); } // deal with posting if($_SERVER["REQUEST_METHOD"] == "POST" && $recaptcha_verification_success == true) { $formarray = General::parse_input($_POST); $name = General::fixtext($formarray["name"]); $email = General::fixtext($formarray["email"]); $errors = array(); if ($name == "") $errors[] = array("message"=>"Name is required.", "highlight"=>"name"); if (!General::is_email_valid($email)) $errors[] = array("message"=>"Email is required and must be valid.", "highlight"=>"email"); 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 $email_message = "A Visitor to The Family Matrix web site just filled out the newsletter signup form: Name: $name Email: $email "; $email_message = General::fixtext($email_message,"email"); mail("contact_us@familymatrix.com","FamilyMatrix Sign Up Form Submission",$email_message); $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 signing up with Family Matrix.", $headers, $additional_params); } } } // begin page echo $page->build_start("News Letter"); ?> build_body($onload_js); echo $page->build_head(); ?>

Sign up for our Newsletter


We will keep you informed of all sales and special promotions. You will also be notified of all new product developments.

Please be assured that we will keep your email address in strict confidence and will not distribute it to any third party.

Each email sent will contain an "unsubscribe link". When you link to this address you will be removed form our mailing list.

Thanks for your interest in Family Matrix products.



Name: ">
Email: ">


Thank you for contacting us.

You are now signed up for our newsletter.
draw_flair(); echo $page->end_body(""); ?>