Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Good, Simple Validation Script

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26827
    sebgonz
    Member

    What are your suggestions for a good, simple validation script for a contact form? There are so many out there, that I’m not quite sure which one to use. I don’t want to have to take forever to set it up. Just something that’s pretty straight forward. Any ideas? :?

    #68107
    godwinsam
    Member

    Hello,

    Please find the below mentioned link,
    http://www.devarticles.com/c/a/JavaScri … avaScript/
    Its very good script for validating the form.
    Please find it.

    #68125
    BaylorRae
    Member

    When checking email addresses I use this.

    Code:
    function check_email() {
    var email_field = document.form_name.email_field.value;

    if( /b[w._-]+@[w-_.]+.[a-zA-z]{2,4}b/.test(email_field) ) {
    return true;
    }else {
    return false;
    }
    }

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.