The reCAPTCHA wasn't entered correctly. Go back and try it again.(reCAPTCHA said: incorrect-captcha-sol)

4,081 views
Skip to first unread message

SlashHideMyDot

unread,
Mar 13, 2011, 11:13:35 AM3/13/11
to reCAPTCHA
i keep getting this error The reCAPTCHA wasn't entered correctly. Go
back and try it again.(reCAPTCHA said: incorrect-captcha-sol) even tho
i entered the word/puzzle correctly.

on top of my page
require_once('lib/recaptchalib.php');

inside my form
<?php
$publickey = "My Public Key";
echo recaptcha_get_html($publickey);
?>

in my php verification
$privatekey = "My Private Key";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);

if (!$resp->is_valid) {
$registermsg[] = $core->message("The reCAPTCHA wasn't entered
correctly. Go back and try it again." .
"(reCAPTCHA said: " . $resp->error . ")", "error");
}

PJH

unread,
Mar 13, 2011, 3:59:00 PM3/13/11
to reca...@googlegroups.com
On Sun, Mar 13, 2011 at 3:13 PM, SlashHideMyDot <kevink...@yahoo.com> wrote:

<snip>
> in my php verification

echo "<pre>";
print_r($_POST);
echo "</pre>";

> $privatekey = "My Private Key";
>                $resp = recaptcha_check_answer ($privatekey,
>                                $_SERVER["REMOTE_ADDR"],
>                                $_POST["recaptcha_challenge_field"],
>                                $_POST["recaptcha_response_field"]);
>
>                if (!$resp->is_valid) {
>                        $registermsg[] = $core->message("The reCAPTCHA wasn't entered
> correctly. Go back and try it again." .
>         "(reCAPTCHA said: " . $resp->error . ")", "error");
>                        }


--
PJH

SlashHideMyDot

unread,
Mar 14, 2011, 1:25:05 AM3/14/11
to reCAPTCHA
well this is what i got
Array
(
[register_username] => **
[register_password] => **
[register_confirm_password] => **
[register_email] => **
[register_ign] => **
[register_lvl] => **
[register_class] => **
[submit_register] => **
}

On Mar 14, 3:59 am, PJH <pauljherr...@gmail.com> wrote:

PJH

unread,
Mar 14, 2011, 4:21:21 AM3/14/11
to reca...@googlegroups.com
You're missing recaptcha_challenge_field and recaptcha_response_field
in that output.

This indicates that the reCAPTCHA isn't within your <form></form>, and
is also the reason you're getting incorrect-sol all the time (since
you're submitting blanks, not what the user has entered.)

> --
> You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
> To post to this group, send email to reca...@googlegroups.com.
> To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/recaptcha?hl=en.
>
>

--
PJH

Message has been deleted

SlashHideMyDot

unread,
Mar 14, 2011, 5:13:17 AM3/14/11
to reCAPTCHA
thats weird because my recaptcha is inside the form

<table>
<form action="<?php echo $core->Conf['site']['modRewritePath']; ?
>register/" method="post">
<tr>
<td><label
for="label_register_username">Username:</label></td>
<td><input type="text"
name="register_username" id="label_register_username" class="all" /></
td>
</tr>
<tr>
<td><label
for="label_register_password">Password:</label></td>
<td><input type="password"
name="register_password" id="label_register_password" class="all" /></
td>
</tr>
<tr>
<td><label
for="label_register_confirm_password">Confirm Password:</label></td>
<td><input type="password"
name="register_confirm_password" id="label_register_confirm_password"
class="all" /></td>
</tr>
<tr>
<td><label
for="label_register_email">Email: </label></td>
<td><input type="text"
name="register_email" id="label_register_email" class="all" /></td>
</tr>
<tr>
<td><label
for="label_register_ign">IGN: </label></td>
<td><input type="text"
name="register_ign" id="label_register_ign" class="all" /></td>
</tr>
<tr>
<td><label
for="label_register_lvl">Level: </label></td>
<td><input type="number"
name="register_lvl" id="label_register_lvl" class="all" size="1" /></
td>
</tr>
<tr>
<td><label
for="label_register_class">Class: </label></td>
<td>
<select class="select"
id="label_register_class" name="register_class">
<option value="">- SELECT -</
option>
<option value="AS">Assassin</
option>
<option value="RG">Ranger</option>
<option value="CR">Cleric</option>
<option value="CT">Chanter</
option>
<option value="TP">Templar</
option>
<option value="GT">Gladiator</
option>
<option value="SR">Sorcerer</
option>
<option value="SM">Spirit Master</
option>
</select>
</td>
</tr>
<tr>
<td></td>
<td>
<?php
$publickey = "6LfjXMISAAAAAKdOSmB-j4bBUa2qWX5J6mM2Xq0j"; //
you got this from the signup page
echo recaptcha_get_html($publickey);
?>
</td>
</tr>
<tr>
<td></td>
<td><input type="submit"
name="submit_register" value="Register" class="submit" /></td>
</tr>
</form>
</table>
> > You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.> To post to this group, send email torec...@googlegroups.com.> To unsubscribe from this group, send email torecaptcha...@googlegroups.com.

PJH

unread,
Mar 14, 2011, 5:32:50 AM3/14/11
to reca...@googlegroups.com
URL?

SlashHideMyDot

unread,
Mar 14, 2011, 11:19:54 AM3/14/11
to reCAPTCHA
http://aphotic-legion.com/register/
> >> > -->> > You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.> To post to this group, send emailtor...@googlegroups.com.> To unsubscribe from this group, send emailtorecaptc...@googlegroups.com.

Dom Sekotill

unread,
Mar 14, 2011, 12:58:38 PM3/14/11
to reca...@googlegroups.com

SlashHideMyDot

unread,
Mar 14, 2011, 3:10:47 PM3/14/11
to reCAPTCHA
cool thx ill try that

On Mar 15, 12:58 am, Dom Sekotill <k...@gmx.co.uk> wrote:
> <http://validator.w3.org/check?uri=http%3A%2F%2Faphotic-legion.com%2Fr...>
> >>>>> -->>  >  You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.>  To post to this group, sendemailt...@googlegroups.com.>  To unsubscribe from this group, sendemailtorecap...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages