Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-09-2008, 02:29 PM   PM User | #1
northlandca
New Coder

 
Join Date: Oct 2008
Posts: 11
Thanks: 7
Thanked 0 Times in 0 Posts
northlandca is an unknown quantity at this point
Question Question about validation code

Please be patient with me, as I am a complete newbie, and English is not my native language.

I created a webpage with dreamweaver (no knowledge of html, javascript or anything else regarding to webpage design).

Our contact page lets visitors fill in and submit a form. The problem is, that some automated programs seem to fill in the form and send spam which is getting really annoying.

Some of the fields need to be validated before the form successfully submits:

onClick="MM_validateForm('Name','','R','Email','','RisEmail','PLZ','','NisNum','Tel','','NisNum','Fa x','','NisNum');return document.MM_returnValue" value="Abschicken">

There is also a text area, where visitors can fill in a message. My question now is, is there a requirement like "RisEmail", that would prompt an error message for messages that exceed a certain number of signs?
northlandca is offline   Reply With Quote
Old 10-09-2008, 02:38 PM   PM User | #2
ohgod
Regular Coder

 
ohgod's Avatar
 
Join Date: Jun 2008
Location: Ohio
Posts: 579
Thanks: 6
Thanked 69 Times in 69 Posts
ohgod is on a distinguished road
Quote:
My question now is, is there a requirement like "RisEmail", that would prompt an error message for messages that exceed a certain number of signs?
Signs as in @ or something? What are you actually looking to limit?


And you might want to look at captcha or something to help slow down the bots.
ohgod is offline   Reply With Quote
Old 10-09-2008, 03:10 PM   PM User | #3
northlandca
New Coder

 
Join Date: Oct 2008
Posts: 11
Thanks: 7
Thanked 0 Times in 0 Posts
northlandca is an unknown quantity at this point
Quote:
Originally Posted by ohgod View Post
Signs as in @ or something? What are you actually looking to limit?


And you might want to look at captcha or something to help slow down the bots.
Thank you for the fast reply.

"Signs", there goes my English. I meant characters.

We figure that most bots will likely use more than 1000 characters for the message. So, if the message exceeds the 1000 characters, then an error message should pop up. These messages now pop up, if the email field does not contain an email address, or if the postal code contains letters etc.

I looked into captcha (found some on Adobe Exchange), but personally I find them annoying, so I didn't want our customers to deal with them. If nothing else helps, I will look into that.
northlandca is offline   Reply With Quote
Old 10-10-2008, 12:15 PM   PM User | #4
northlandca
New Coder

 
Join Date: Oct 2008
Posts: 11
Thanks: 7
Thanked 0 Times in 0 Posts
northlandca is an unknown quantity at this point
I have tried to google my question, but couldn't find any other validation codes but:
required, is email, is number and is number from to. Those are the options Dreamweaver offers.
northlandca is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:49 PM.


Advertisement
Log in to turn off these ads.