Nigol 0 Denunciar post Postado Abril 19, 2010 Galera estou com dificuldade co o uso do Recaptcha... não sei como instanciar o uso dele... não sei como setar a próxima página sendo que devo mandar valores da session para a próxima... Segue o código exemplo do site (unica diferença que eu coloquei um action no form... mas não funcionou <html> <body> <form action="" method="post" action="contato.php"> <?php require_once('recaptchalib.php'); // Get a key from http://recaptcha.net/api/getkey $publickey = "************** "; $privatekey = "**************** "; # the response from reCAPTCHA $resp = null; # the error code from reCAPTCHA, if any $error = null; # was there a reCAPTCHA response? if ($_POST["recaptcha_response_field"]) { $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if ($resp->is_valid) { echo "You got it!"; } else { # set the error code so that we can display it $error = $resp->error; } } echo recaptcha_get_html($publickey, $error); ?> <br/> <input type="submit" value="submit" /> </form> </body> </html> Compartilhar este post Link para o post Compartilhar em outros sites
Nigol 0 Denunciar post Postado Abril 19, 2010 COnsegui.... tiveque tratar a session e um OB_START... mas funcionou por header Compartilhar este post Link para o post Compartilhar em outros sites