Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 05-02-2011, 10:53 AM   #1
Warrior Member
 
Join Date: Aug 2010
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Zip code verification

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
SteveJo is offline   Reply With Quote
Old 05-02-2011, 02:10 PM   #2
HyperActive Warrior
War Room Member
 
RichardF's Avatar
 
Join Date: Oct 2010
Posts: 373
Thanks: 7
Thanked 130 Times in 45 Posts
Default Re: Zip code verification

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.
RichardF is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum

Tags
code, verification, zip

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 04:13 AM.