Składa się to z 3-ech plików.
Plik example-captcha.php
<html> <body> <!-- the body tag is required or the CAPTCHA may not show on some browsers --> <!-- your HTML content --> <form method="post" action="stat.php"> <?php require_once('recaptchalib.php'); $publickey = "6LdSmcASAAAAAAeMnioo5DRz2Q1yc5DqNvHaEj_h"; // you got this from the signup page ?> <input type="submit" /> </form> <!-- more of your HTML content --> </body> </html>
stat.php (tj. verify.php)
<?php require_once('recaptchalib.php'); $privatekey = "6LdSmcASAAAAAENcQhVTMsqME4WUB-9npPsyFtXR"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly "(reCAPTCHA said: " . $resp->error . ")"); } else { // Your code here to handle a successful verification } ?>
Oraz plik recaptchalib.php
http://wklej.to/mLasQ
^Za długi ... nie mieści się tutaj

A tutaj link do strony: http://redeem-it.aq.pl/example-captcha.php