Grow your CSS skills. Land your dream job.

Validating Specific Zip Codes

  • # January 30, 2012 at 4:53 pm

    I have a project where I have to redirect people depending on what zip code that they put into the zip code field. There are1206 zip codes that if someone puts in they get redirected to another site. I really don’t want to have to do 1206 if statements. Anyone have any other solutions?

    Thanks,

    Justin

    # January 30, 2012 at 4:58 pm

    You dont have to use if statements, just make 1206 variables and use which ever matches what the user put in. Or if you have back end experience, create a database table with the info. Not really a quick way of doing this.

    # January 31, 2012 at 12:51 pm

    Would I be able to do something like this?











    Display Date


Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".