CONTACT GEORGE MALLINCKRODT

NAME:

EMAIL:

COMMENT:

    6LeWtIoUAAAAALb3N7u2vCDn8iOFNmR2uWt39hoy 'response' => $userResponse ); foreach($fields as $key=>$value) $fields_string .= $key . '=' . $value . '&'; $fields_string = rtrim($fields_string, '&'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://www.google.com/recaptcha/api/siteverify'); curl_setopt($ch, CURLOPT_POST, count($fields)); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, True); $res = curl_exec($ch); curl_close($ch); return json_decode($res, true); } // Call the function CheckCaptcha $result = CheckCaptcha($_POST['g-recaptcha-response']); if ($result['success']) { //If the user has checked the Captcha box echo "Captcha verified Successfully"; } else { // If the CAPTCHA box wasn't checked echo ''; } } ?>

HOME