• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [SOLVED] Form Builder - Secure form without captcha
PostPosted: Sun Apr 22, 2012 1:26 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu Apr 15, 2010 12:27 am
Posts: 218
Location: Georgia
Hello CMSMSers!

I've got a customer that wants a contact form, but hates how ugly CAPTCHA looks. So I did some googling and found this: http://nfriedly.com/techblog/2009/11/how-to-build-a-spam-free-contact-forms-without-captchas/

Thought this was very cool! I'm not wanting to display the email address, I'm just wanting to have the form submit only if the URL field is empty. But I can't figure out where within Form Builder I can add this PHP.

Any ideas??


Last edited by michaywood on Sun Apr 22, 2012 4:46 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Form Builder - Secure form without captcha
PostPosted: Sun Apr 22, 2012 2:04 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Dec 23, 2008 8:39 pm
Posts: 1321
You don't need to add PHP.. It's already there.

Create a text input field, set the field validation to "Match Regular Expression" .. In the "Advanced Settings" of this field, set the validation regex to /^$/ which is regex syntax meaning "nothing" .. Form Builder will reject anything typed into this field.


Top
 Profile  
 
 Post subject: [SOLVED] Re: Form Builder - Secure form without captcha
PostPosted: Sun Apr 22, 2012 3:52 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu Apr 15, 2010 12:27 am
Posts: 218
Location: Georgia
nice! love it! The only thing this does differently than the site I linked earlier, is when the regular expression has text in it, CMSMS spits an error saying to put the correct value in the field. On that link, it takes the form and puts it to the submission thank you page making the person THINK the form was submitted (person=spanbot). Is there an easy way to do this? I'll go ahead and mark this as solved.

Thanks so much!


Top
 Profile  
 
 Post subject: Re: [SOLVED] Form Builder - Secure form without captcha
PostPosted: Sun Apr 22, 2012 5:11 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Dec 23, 2008 8:39 pm
Posts: 1321
In the form template, there is a line that says {if $fb_submission_error} .. Somewhere in this area you can check for this message, and if so, post "submission recieved" and not re-post the form.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: sandaha


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting