September 12, 201114 yr Ok, I'm a total php beginner I used Jems php contact form for a client, who would also like it to use captcha. I tried to install it using the directions on the captcha site, but it might as well have been written in Chinese! Any php gurus out there kind enough to help me out? fanks!
September 12, 201114 yr Have you got any code we can take a look at? I could try and help you but without actual code to look at I can't.
September 12, 201114 yr Author temp site can be viewed here No comments on design please.... I know it's not my style
September 12, 201114 yr And this does not work? <form method="post" action="verify.php"> <?php require_once('recaptchalib.php'); $publickey = "your_public_key"; echo recaptcha_get_html($publickey); ?> <input type="submit" /> </form> <?php require_once('recaptchalib.php'); $privatekey = "your_private_key"; $resp = recaptcha_check_answer ($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 { } ?> Source: http://code.google.com/apis/recaptcha/docs/php.html I assumed you were referring to the most popular, reCaptcha. Edited September 12, 201114 yr by brightonmike
Create an account or sign in to comment