validating zip code problem

by Thomas Rumley <trumley(at)softhome.net>

 Date:  Mon, 17 Jun 2002 23:38:35 -0400
 To:  hwg-basics(at)hwg.org
  todo: View Thread, Original
Hi All ;

I've got a question that may be a bit off base. It's on JavaScript instead 
on html.

I'm trying to validate a zip code. Hoever, each time a non-numeric 
character is tested it's going right past my checks. I test to see if it's 
< 0 or > 9 using two different tests.

The page is at: 
http://www.aboveboardlinks.com/sitehelp/javascript/formhandling.html

The coding that I'm using is in a green box at the bottom of the page. I 
would really appreciate some help if you can. Please don't refer me to 
another page without telling me what I've done wrong with this on! Thanx.

Thomas

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA