Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //error_reporting(E_ALL ^ E_NOTICE);
- require_once('./recaptchalib.php');
- $privatekey = "6LeyOeYSAAAAAOg3j8mm7GO6oEbFvHDHgei_OaF_";
- # was there a reCAPTCHA response?
- $response = recaptcha_check_answer($privatekey,
- $_SERVER["REMOTE_ADDR"],
- $_POST["recaptcha_challenge_field"],
- $_POST["recaptcha_response_field"]);
- if ($response->is_valid) {
- echo "Yes, that was correct!";
- } else {
- # set the error code so that we can display it
- echo "Eh, That wasn't right. Try Again.";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement