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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    form validation fails

    http://edison.seattlecentral.edu/~dw.../testform2.htm
    http://edison.seattlecentral.edu/~dw...ude/util-dw.js

    Could someone check js and tell me how I can get the form to validate
    it hangs up on password.

  2. #2
    Senior Coder Logic Ali's Avatar
    Join Date
    Sep 2010
    Location
    London
    Posts
    1,028
    Thanks
    0
    Thanked 207 Times in 202 Posts
    The first problem I can see is that the preceding test needs to be inverted.
    Code:
    if(regZipCode(thisForm.Zip, "Please enter a Zip Code")) {return false;}
    Code:
    if( !regZipCode( thisForm.Zip, "Please enter a Zip Code" ) ) {return false;}


 

Posting Permissions

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