Oto kod skryptu:
<?php echo'<form action="" method="post"> <input type="text" name="pole1" style="width: 200px;" /><br /> <input type="submit" value="Zapisz" /> </form>'; } else { $dane = $pole1."\n"; $file = "dane288.txt"; } ?>
<?php echo'<form action="" method="post"> <input type="text" name="pole1" style="width: 200px;" /><br /> <input type="submit" value="Zapisz" /> </form>'; } else { $dane = $pole1."\n"; $file = "dane288.txt"; } ?>
<?php require_once('recaptchalib.php'); $publickey = "TUTAJ TWOJ PUBLICZNY KLUCZ"; ?>
require_once('recaptchalib.php'); $privatekey = "TUTAJ TWOJ KLUCZ PRYWATNY"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if ($resp->is_valid) { // Tutaj się udało } else { //Tutaj się nie udało }