We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Trouble with CAPTCHAs and Freeform

Development and Programming

james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

I know that you can use CAPTCHAs with Freeform (I have done it before), but for some reason it’s not appearing right now. In the control panel, these are all the preferences I have set to yes: • Enable Membership Captcha • Enable CAPTCHAs for Tell-a-Friend and Contact emails • Require captcha with logged-in members?

My code for the CAPTCHA is like so:

{if captcha}
<strong><font color="#FF0000">*</font>For security, enter the word you see below</strong>

{captcha} <input type="text" name="captcha" maxlength="20" style="width:140px;" />
{/if}

If I take out the CAPTCHA conditional a CAPTCHA image does show up, but you can submit the page without filling it in. Any ideas why this isn’t working? I am running EE 1.5.2 and Freeform 2.5.2.

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
17 years ago
Lisa Wess's avatar Lisa Wess

Hi, james - if you do not get an answer here you might like to try over at Solspace’s forums, which he put up recently. =)

       
james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

good idea

       
George Ornbo's avatar
George Ornbo
272 posts
17 years ago
George Ornbo's avatar George Ornbo

check that your captcha image folder has the correct permssions. EE needs to be able write the image into that folder so try changing it to 777 and see if that helps.

       
james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

that directory does have 777 as its permissions. and like i said, if i take out the conditional, a CAPTCHA image does render. but it doesn’t make it a required field for submitting the form. you could leave that field blank and the form would still submit.

       
George Ornbo's avatar
George Ornbo
272 posts
17 years ago
George Ornbo's avatar George Ornbo

is it writing the images into that folder? if not the path to the CAPTCHA folder may not be correct. Prior to 1.6 this was set in config.php. If you have 1.6 it is in CAPTCHA preferences in the CP.

If you have permissions set and the CAPTCHA image is writing correctly to the folder then I’m totally lost!

Good luck.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.