Rikk / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 0 forks source link

Strange problem with reCaptcha implementation #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have implemented reCaptcha in my site.
In Registration Page-
http://gigahertz.byethost18.com/index.php?
option=com_comprofiler&task=registers

and in Forgot Password page -
http://gigahertz.byethost18.com/index.php?
option=com_comprofiler&task=lostPassword

1st one is working FINE.

But, though same code, Forgot Password page is not working properly.

After much debug, I found that there is no value in 
'recaptcha_challenge_field' and 'recaptcha_response_field' after POST (that 
is after SUBMIT button is hit)

Please help me out..... can't find the solution for 3 months now.....

Original issue reported on code.google.com by ios...@gmail.com on 24 Jan 2009 at 5:24

GoogleCodeExporter commented 9 years ago
I experienced the same problem using the Perl Captcha::ReCAPTCHA module.

I ended up using javascript to post the url. Less handy, for sure.

Pseudo code:
<form...
<input type='button' value='Send Email' onclick="javascript:check();"></form>

<script language="javascript">
 function check() {
  var c = document.getElementById('recaptcha_challenge_field').value;
  var r = document.getElementById('recaptcha_response_field').value;
  window.location = "http://my.host/feedback.pl?recaptcha_challenge_field=" + c +
"&recaptcha_response_field=" + r;
  // of course, i used other fields for the mail, address, etc...
</script>

Original comment by daveoffe...@gmail.com on 22 Jun 2009 at 10:25

GoogleCodeExporter commented 9 years ago
Thank you for sharing your tweak. Is it working now ?
Can you please upload/attach here your PHP file so that I can study.

This problem was generally occurred if someone using CB1.1 or older. But 
couldn't
figure out why....

Original comment by ios...@gmail.com on 23 Jun 2009 at 5:00