Jun 30th, 2009, 9:27 AM
(This post was last modified: Jun 30th, 2009, 9:28 AM by sergiozambrano.)
After many days (last few and weeks ago's) of struggling with the recaptcha, I think it's a good idea to share my issues so others find something about it, at least until documentation is finished.
In brief:
1) Don't use functions using "recaptcha" in the name. They seem to have changed to "captcha"
2) There's no captcha for the POST version (direct-post to process.php withouth API).
3) Don't use the following out-dated links:
Whether you wanted to use RECAPTCHA in your form, Direct-post or API, you surely found some "UNDEFINED FUNCTION" errors if followed this link
http://docs.formtools.org/tutorials/post...page=index
The error is something like
Call to undefined function ft_api_start_sessions()
That page wanted to be a tutorial for adding recaptcha to a NON-API form, but it ends up taking you to the API version here http://docs.formtools.org/tutorials/post...ng_captcha
I don't know what happened along the way, but there are many attempts to do it but it never happened.
Later, if you decided to finally go with the API, it wont work if you used that link due to some update on the name of the function. So again, they will be undefined if copied from that page or from the overview of "function reference" here http://docs.formtools.org/api/?page=function_reference (page was fixed but the functions list still shows the wrong one)
The wrong functions I found (so far) are:
and
There is no good captcha or server-side validation tutorials yet (that I know).
Use the captcha demo for adding recaptcha to your forms using the API, found here:
http://demo.formtools.org/forms/captcha/
The outdated recaptcha tutorial mentioned above also has extra functions for the "thank you" page and error texts thrown by the captcha function that don't work either. I haven't found what the replacements are yet, if they are needed at all.
My apologies for my bad english. Fell free to edit it.
In brief:
1) Don't use functions using "recaptcha" in the name. They seem to have changed to "captcha"
2) There's no captcha for the POST version (direct-post to process.php withouth API).
3) Don't use the following out-dated links:
Whether you wanted to use RECAPTCHA in your form, Direct-post or API, you surely found some "UNDEFINED FUNCTION" errors if followed this link
http://docs.formtools.org/tutorials/post...page=index
The error is something like
Call to undefined function ft_api_start_sessions()
That page wanted to be a tutorial for adding recaptcha to a NON-API form, but it ends up taking you to the API version here http://docs.formtools.org/tutorials/post...ng_captcha
I don't know what happened along the way, but there are many attempts to do it but it never happened.
Later, if you decided to finally go with the API, it wont work if you used that link due to some update on the name of the function. So again, they will be undefined if copied from that page or from the overview of "function reference" here http://docs.formtools.org/api/?page=function_reference (page was fixed but the functions list still shows the wrong one)
The wrong functions I found (so far) are:
PHP Code:
<?php ft_api_display_[color=#FF0000]recaptcha[/color](); ?>
PHP Code:
<?php ft_api_display_post_form_[color=#FF0000]recaptha[/color]_error(); ?>
There is no good captcha or server-side validation tutorials yet (that I know).
Use the captcha demo for adding recaptcha to your forms using the API, found here:
http://demo.formtools.org/forms/captcha/
The outdated recaptcha tutorial mentioned above also has extra functions for the "thank you" page and error texts thrown by the captcha function that don't work either. I haven't found what the replacements are yet, if they are needed at all.
My apologies for my bad english. Fell free to edit it.