Zip code verification

1 replies
  • SEO
  • |
Hi!
How can I create on my site an error message when the user submits an invalid zip code?
For example, in this site: carinsurancequotes.com , if I submit the zip code 99999 I get an error message: Please enter a valid zip code.

This is the code on my site:

HTML Code:
<form action="the next page" method="get" name="form">
<input type="text" name="zipcode" maxlength="5" id="zipcode" />
<br />

<input type="submit" name="search" id="button" value=""/>
</form>
Thanks,
Steve
#code #verification #zip
  • Profile picture of the author RichardF
    You need a zip-code database on the server side (using a script language like PHP) to be able to tell if it's valid or not.
    Signature


    Need a writer who really understands the Internet marketing niche?
    Sales copy, autoresponders, articles, e-books, blog posts & more!
    Visit my WF thread -or- my website

    {{ DiscussionBoard.errors[3812958].message }}

Trending Topics