I need an easy method for validating a 5 digit number, in this case being a zipcode. Obviously what I tried didn't work as I wanted. Any suggestions would be helpful. Thanks everyone! :)
A zip code is not an integer. Integers can't start with 0, whereas zip codes can (several places in New York, for example). Make it a string and check that each character is a digit and that it is 5 characters long.