PHP Forums Archive

How I can use reCAPTCHA in the Registration form?

Tags: access_user, registration, captcha

paulkees posted on 2011-06-05 01:21:16 #

Hi Olaf!

Please...

How I can use reCAPTCHA in the Registration form?

Is it possible?

Or maybe use another captcha

Best regards!

Comments / discussions

Olaf posted on 2011-06-05 06:45:01 #

Hallo Paul,

you can use reCaptcha for every form, I guess you're talking about the registration for the Access_user class?

In that case (and most others) I would use the reCaptcha code only on that registration page (not inside the class), like:

if (reCaptcha == valid) {
    // continue with the registration part
} else {
    echo 'reCaptcha is not valid';
}

(Note, the example above is a not working example)

paulkees posted on 2011-06-05 14:47:50 #

Hi Olaf...

Yes, It is for for the Access_user class... but I can not make it work!

I'm using the example given here reCAPTCHA:

GUIDE PHP reCAPTCHA

I have problems with error messages

<?php $error = $new_member->the_msg; // error message ?>

Every time I send the form or there is an error message ... appears reCAPTCHA

Please, Is it possible a more detailed example?

Olaf posted on 2011-06-05 20:28:39 #

Hi,

do you tried this captcha tutorial? It's more advanced while using Ajax, but the PHP part is the same as I use for other sites.

paulkees posted on 2011-06-05 23:37:24 #

Ok, Olaf ... thank you very much for your help!

Best regards.