Form stops working with Data required and anti-spam

Issues related to forms.
Post Reply
User avatar
protectourlands
 
 
Posts: 443
Joined: Sat May 24, 2008 2:16 am
Contact:

Form stops working with Data required and anti-spam

Post by protectourlands »

My client requested I add Validate > Data required to their form fields. This broke the form sending it to the error page on send. I eventually figured out it was conflicting with the anti-spam feature in Advanced > Misc > Enable Server Sided Validation. I had to disable this feature to get the form to work with data required fields.

Is there a possible work-around for this? Or are the two features incompatible?
User avatar
Pablo
 
Posts: 21585
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form stops working with Data required and anti-spam

Post by Pablo »

Maybe the settings are incomplete? For example, maybe you have set a minimum value but no maximum?
User avatar
protectourlands
 
 
Posts: 443
Joined: Sat May 24, 2008 2:16 am
Contact:

Re: Form stops working with Data required and anti-spam

Post by protectourlands »

I don't think that is it Pablo.

Test: Add a form to a page with just 1 editbox field. Check Require data and set the min to 1, max to 100. Test and verify form works. Go to Advanced and select Enable Server Side validation. Form stops working and goes to error page.

Here are two test pages. I cloned test1 to make test2 and only checked the server side validation. Nothing else

Enable Server Side validation unchecked
http://www.hippiechicscatering.com/test1.php

Enable Server Side validation checked
http://www.hippiechicscatering.com/test2.php
User avatar
Pablo
 
Posts: 21585
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form stops working with Data required and anti-spam

Post by Pablo »

I cannot see what you have done based on the published HTML code.
To be able to help you I need a demo project, so I can see all settings.
User avatar
protectourlands
 
 
Posts: 443
Joined: Sat May 24, 2008 2:16 am
Contact:

Re: Form stops working with Data required and anti-spam

Post by protectourlands »

Sorry Pablo. I was working on it when you replied. Here it is

http://www.hippiechicscatering.com/valtest.wbs
User avatar
protectourlands
 
 
Posts: 443
Joined: Sat May 24, 2008 2:16 am
Contact:

Re: Form stops working with Data required and anti-spam

Post by protectourlands »

OOPS! I left out the success and fail pages. Here it is with those.

http://www.hippiechicscatering.com/valtest.wbs
User avatar
Pablo
 
Posts: 21585
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form stops working with Data required and anti-spam

Post by Pablo »

I think the issue is related to the spaces in the input field.
"First Name" is not valid. PHP does not support spaces in input names.

See also:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=64868
User avatar
protectourlands
 
 
Posts: 443
Joined: Sat May 24, 2008 2:16 am
Contact:

Re: Form stops working with Data required and anti-spam

Post by protectourlands »

Yes Pablo, that is probably it. I have never had this be an issue with field names but apparently the server side validation that I just started using doesn't like it. BTW using this and the Do Not Allow URLs has seemed to dramatically reduced form spamming. Thank you for adding these options.

And, thank you so much for taking the time to look into this. You are amazing!
Post Reply