Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2008
    Posts
    11
    Thanks
    7
    Thanked 0 Times in 0 Posts

    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?

  • #2
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts
    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.

  • #3
    New Coder
    Join Date
    Oct 2008
    Posts
    11
    Thanks
    7
    Thanked 0 Times in 0 Posts
    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.

  • #4
    New Coder
    Join Date
    Oct 2008
    Posts
    11
    Thanks
    7
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •