public ve private keyler ise : https://www.google.com/recaptcha/admin/create
bu adresten kayıt olunarak alınır.
<html>
<body>
<form action="a.php" method="post">
<?php
require_once('recaptchalib.php');
$publickey = "Public anahtarınız"; // https://www.google.com/recaptcha/admin/create /// bu sayfadan alınır.
echo recaptcha_get_html($publickey); ?>
<input name="a" type="text" id="a">
<input type="submit" value="submit" />
</form>
</body>
</html>a.php kodları
<?php
$a=$_POST['a'];
require_once('recaptchalib.php');
$privatekey = "Özel anahtar"; // yine signup sayfasından alınabilir. yukarıda verdim sayfa adresini
$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
die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
"(reCAPTCHA said: " . $resp->error . ")");
} else {
echo $a; } // eğer girdiğim kodlar doğruysa formu gönderip a değişkenini yazdırmasını istedim.
?>Bende bu şekilde çalıştı.

