X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=captcha.php;fp=captcha.php;h=f7335b6f881bde6b24f59ed2711bc7a22869ab08;hb=d4adeb654507e6cd75aac3f264ae21ed5d16bfab;hp=0000000000000000000000000000000000000000;hpb=f870b65ad60d8ea7456384d38f8db6fd01275990;p=dylansserver.git diff --git a/captcha.php b/captcha.php new file mode 100644 index 0000000..f7335b6 --- /dev/null +++ b/captcha.php @@ -0,0 +1,19 @@ +recaptcha_privatekey, + $_SERVER["REMOTE_ADDR"], + $_POST["recaptcha_challenge_field"], + $_POST["recaptcha_response_field"]); +if (!$resp->is_valid) { + die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . + "(reCAPTCHA said: " . $resp->error . ")"); +} else { + echo "success!"; +} + +?>