Please check the Captcha box\n"; } else { $response=json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6Ld2MxQUAAAAAK_Ynlo8cyRiy2BjIhiYhtdqpAAU&response=" . $captcha . "&remoteip=" . $_SERVER['REMOTE_ADDR']), true); if ($response['success'] == false) { $captchaError = TRUE; $captchaMessage = "

Please check the Captcha box

\n"; } } if (!$formvalues['RealName'] || !$formvalues['MailFrom']) { $formerror = TRUE; $errormessage1 = "

Please fill in all required fields.

\n"; } if ($formvalues['MailFrom'] && !preg_match('/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i', $formvalues['MailFrom'])) { $formerror = TRUE; $errormessage2 = "

Please enter a valid email address.

\n"; } /* Check for values that may indicate spam attempts */ foreach ($formvalues as $value) { if (preg_match('/MIME-Version:/', $value)) $spamerror = TRUE; if (preg_match('/http:/', $value)) $spamerror = TRUE; if (preg_match('/Content-Type:/', $value)) $spamerror = TRUE; if (preg_match('/href=/', $value)) $spamerror = TRUE; } if (!$captchaError && !$formerror && !$spamerror) { $to = "gordonhaas@gmail.com"; $subject = "Haas Gallery Mailing List Request"; foreach ($formvalues as $key => $value) { $body = $body . $key . ": " . stripslashes($value) . "\n"; } $headers = "From: gordonhaas@gmail.com\r\n"; $headers .= "Reply-To: gordonhaas@gmail.com\r\n"; $headers .= "Return-Path: gordonhaas@gmail.com\r\n"; $headers .= "BCC: delaneydesign207@gmail.com\r\n"; mail ($to,$subject,$body,$headers); header ("Location: mailinglist.php?action=sent"); exit; } } else { foreach ($formvalues as $value) { $value = NULL; } } if ($action == "sent") { $inquirysent = TRUE; } ?> Join the Haas Gallery Mailing List | The Art of Gordon Haas in Lambertville, NJ

Mailing List

Thank you!

Thank you for signing up for the Haas Gallery mailing list. Your inquiry has been submitted.

Sign-up for the Haas Gallery Mailing List

If you would like to receive e-mail from Haas Gallery describing upcoming gallery shows, events, or the availability of limited edition prints, please fill out the following form and click the "Join Mailing List" button below. Bold entries are required fields.

Privacy: We keep all contact information confidential and will never sell or give away our mailing list to anyone for any purpose. To be removed from the list at any time in the future, just drop us an e-mail request and your name will be promptly removed. If you would also like to receive printed mailings, please include your mailing address (optional):

FORM ERROR: HTML links or attempts to email through this form are not permitted. Please check your form field values and try again. Thanks!

\n"; ?>
Name:
E-mail:
Company Name:
Address:
 
City:
State:
Zip:
 
Click to submit