My reCaptcha doesn't work

178 views
Skip to first unread message

Michał Staniewski

unread,
Feb 11, 2012, 9:39:13 AM2/11/12
to reCAPTCHA
Hey Guys! Yesterday i've took a Captcha code from Google, and made a
PHP script which seems like:
<?php
if($_POST['recaptcha_response_field']; ==
$_POST['recaptcha_challenge_field'];){
content
}
?>
But it doesn't seems to be working. Always i try to solve captcha it
says i've wrote down wrong captcha. Any ideas?

PJH

unread,
Feb 11, 2012, 10:14:47 AM2/11/12
to reca...@googlegroups.com


2012/2/11 Michał Staniewski <mstanie...@gmail.com>

if($_POST['recaptcha_response_field']; ==
$_POST['recaptcha_challenge_field'];){

I'm surprised that even compiles, let alone do anything useful; those two fields will be different. What are you trying to do?


--
PJH


brockness

unread,
Feb 12, 2012, 7:48:46 PM2/12/12
to reCAPTCHA
<?php

if ( $_POST['recaptcha_response_field']
== $_POST['recaptcha_challenge_field'] ) {

# successful match

} else {

# fail

}

?>

cleaned up your PHP. i think your syntax may have been part of the
problem.

On Feb 11, 9:39 am, Michał Staniewski <mstaniewski1...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages