• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 728
  • Last Modified:

Coldfusion + reCAPTCHA

I'm working on a reCAPTCHA for my forums, but after I submit the form I keep getting the following error.

Element RECAPTCHA_CHALLENGE_FIELD is undefined in FORM

and everything looks fine.
0
Medrise
Asked:
Medrise
3 Solutions
 
SidFishesCommented:
without seeing your code it's hard to say why but you may need to simply define the variable


<cfparam name="form.RECAPTCHA_CHALLENGE_FIELD" default="">

0
 
Brijesh ChauhanStaff IT EngineerCommented:
Can you post your form code ? you can use a custom tag for re-captcha if not already ...

http://recaptcha.riaforge.org/
0
 
MedriseAuthor Commented:
Sorry I forgot the code.. :(

I'm using the now the http://recaptcha.riaforge.org/ and it always display false...

Here is the code...


<!--- SUBMIT FORM --->
<cfif Isdefined("FT_ACTION")>

<!--- CHECK RECAPTCHA --->
<cf_recaptcha action="check" privateKey="pKEY" publicKey="pubKEY">
...do some insert to db...
</cfif>

<cfform action="#FTVAR_LINKP#join.cfm" name="profileform" method="post" onsubmit="#FTVAR_JSTORUNTMP#" style="margin:0px;" enctype="multipart/form-data">

..... SOME IMPUTS ....

<cf_recaptcha privateKey="pKEY" publicKey="pubKEY">
<input type="hidden" name="FT_ACTION" value="signup">
<input type="hidden" value="join.cfm?FT_ACTION=showsignup" name="FTVAR_REDIRECT">
</cfform>

Open in new window

0
 
sajaycCommented:
Hi,

Your code looks fine, have you registered the site on the recaptcha database?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now