You can't validate reCAPTCHA in Javascript. Doing so is insecure. Whatever
server side software you are using, you need to validate reCAPTCHA there.
On 7/10/07, Will <sanggu...@gmail.com> wrote:
> Hi,
> I am using Javascript to validate my form, and I still don't know
> where to put a code to add a call to recaptcha_check_answer(). As far
> as I know, recaptcha_check_answer() is a function is php, and I have a
> validation form in Javascript.
> This is my Javascript code:
> function checkWholeForm(theForm) {
> var why = "";
> why += checkUsername(theForm.username.value);
> why += checkEmail(theForm.email.value);
> why += checkPassword(theForm.password.value,
> theForm.password2.value);
> if (why != "") {
> alert(why);
> return false;
> }
> return true;
> }
> Could you tell me how to implement recaptcha in my Javascript
> validation form?
--
reCAPTCHA: stop spam, read books
http://recaptcha.net