Posts: 2
Threads: 2
Joined: Aug 2009
Reputation:
0
Hi all
Just setting up the reCAPTCHA - created the account, put the code into the form, everything appears to be working. (You see the Captcha box)
BUt - I can enter ANYTHING in the captcha box - and it accepts and processes the form (I should be getting an error). Any idea what I'm doing wrong?
Thanks! Cory
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Huh! That's a new one.
Check your API version - the latest version is 1.0.0-beta-20090815. The option to include it in your POST forms was only added in a recent version.
Let me know!
Posts: 41
Threads: 15
Joined: Jul 2009
Reputation:
0
FYI, after the initial problems I had setting up reCAPTCHA a couple weeks ago, I decided to try again today "from scratch", only to run into the same issue that stonerome has encountered...
The CAPTCHA appears on the form page as expected (so that[/] part of the functionality seems to be working fine), but the form successfully submits [i]regardless of what I enter in the form, including if I leave the form blank.
So, it's as if the CAPTCHA isn't getting processed at all for some reason.
I am using the latest versions of everything (I checked for updates today before I started working on this):
Core Version: 2.0.0-beta-20090826
API Version: 1.0.0-beta-20090815
A couple weeks ago when I was first exploring reCAPTCHA and FormTools2, the CAPTCHA processed properly (it submitted when correct but didn't when incorrect) but the error messaging for an improper CAPTCHA didn't show up at all.
So, this new issue seems to be unrelated to the last issue.
Any ideas?
Thanks,
Posts: 7
Threads: 1
Joined: Aug 2009
Reputation:
0
(Aug 24th, 2009, 12:53 PM)stonerome Wrote: Hi all
Just setting up the reCAPTCHA - created the account, put the code into the form, everything appears to be working. (You see the Captcha box)
BUt - I can enter ANYTHING in the captcha box - and it accepts and processes the form (I should be getting an error). Any idea what I'm doing wrong?
Thanks! Cory
Maybe stuppid question but anyway. Did you put captcha keys into config.php?
Posts: 41
Threads: 15
Joined: Jul 2009
Reputation:
0
Aug 28th, 2009, 1:03 PM
(This post was last modified: Aug 28th, 2009, 1:05 PM by dethompsOWU.)
A followup...I converted the form from a POST form to an API form, and the CAPTCHA works!...sort of.
It appears to be processing properly, in that if I don't enter the correct words (or don't enter anything), I am taken back to the form without the rest of the form being submitted to FormTools or anything.
However, now I'm running into the same issue I encountered a couple weeks ago...I'm not seeing the error message (despite including the code that supposedly makes it show up) and session variables do not appear to be maintained (so the code that is supposed to populate the various form fields with the data that was in them prior to the submission doesn't do anything).
So, something is still amiss...
Posts: 7
Threads: 1
Joined: Aug 2009
Reputation:
0
(Aug 28th, 2009, 1:03 PM)dethompsOWU Wrote: A followup...I converted the form from a POST form to an API form, and the CAPTCHA works!...sort of.
It appears to be processing properly, in that if I don't enter the correct words (or don't enter anything), I am taken back to the form without the rest of the form being submitted to FormTools or anything.
However, now I'm running into the same issue I encountered a couple weeks ago...I'm not seeing the error message (despite including the code that supposedly makes it show up) and session variables do not appear to be maintained (so the code that is supposed to populate the various form fields with the data that was in them prior to the submission doesn't do anything).
So, something is still amiss... You said you converted from POST to API? I have correctly working API form with working captcha. Sounds quite strange since for using captcha in form you suppose to use only this line <?php ft_api_display_captcha(); ?>
Posts: 41
Threads: 15
Joined: Jul 2009
Reputation:
0
It's a very basic form, so converting it from a POST form to an API form was a trivial matter.
In the case of it being a POST form, the CAPTCHA shows up onscreen as expected, but doesn't appear to process in any way (no matter what I put in it, including leaving it blank, the form still processes).
In the case of it being an API form, the CAPTCHA also shows up onscreen as expected, but this time it [does] appear to process correctly. However, in the case of me typing it in incorrectly or leaving it blank, the form just refreshes with a new CAPTCHA. No error code shows up (despite me including the <?=ft_api_display_post_form_captcha_error();?> in the appropriate place).
This second case (CAPTCHA works, processes, but doesn't print an error or anything) is the same thing that I ran into a few weeks ago when I initially started trying to implement CAPTCHA on a POST form.
Why the POST method didn't work properly [i]this[/] time around, I do not know. In all cases, I followed the tutorials in the documentation to the letter.
Posts: 7
Threads: 4
Joined: Sep 2009
Reputation:
0
(Aug 24th, 2009, 12:53 PM)stonerome Wrote: Hi all
Just setting up the reCAPTCHA - created the account, put the code into the form, everything appears to be working. (You see the Captcha box)
BUt - I can enter ANYTHING in the captcha box - and it accepts and processes the form (I should be getting an error). Any idea what I'm doing wrong?
Thanks! Cory
Hi Cory,
I had the same problem. It seems that changing the spacing in the config.php file works.
<?php
// main program paths - no trailing slashes!
$g_root_url = "xxxxxxxxxxx";
$g_root_dir = "/xxxxxxxxxxx";
// database settings
$g_db_hostname = "localhost";
$g_db_name = "xxxxxxxxxxx";
$g_db_username = "xxxxxxxxxxx";
$g_db_password = "xxxxxxxxxxx";
$g_table_prefix = "ft2_";
$g_api_recaptcha_private_key = "xxxxxxxxxxxxxxxxxxxxxxxxxx";
$g_api_recaptcha_public_key = "yyyyyyyyyyyyyyyyyyyyyy";
?>
Posts: 16
Threads: 4
Joined: Sep 2009
Reputation:
0
Ben.. please help. i changed my form to a php one and implemented re-captcha succesfully. but now, even if i enter nothing, the form submitts. No error is returned.
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hi Sujith,
Sorry for the wait! Could you provide a link to your form so I could take a look?
- Ben
|