Today is . Page created 07/27/06

Zip Zip To State States

Zip State

Click to learn about the encoding used in this script  ]

Enter your five (5) digit zip code and "press tab key" to have the script display your state automatically.

We have tested the code in IE6.0, Firefox1.5.0.4, Opera9.0, Netscape8.1 and AOL Explorer1.2. This script worked well in all platforms with no variations observed.

For Your Information For your Information:     Before we begin, we feel obligated to advise you that the above form is for all intensive purposes a "Stand Alone" script. In other words, it really does not do much of anything other than what you see. In order to make it function as designed, you need to incorporate it into a valid working form. If you do not have a good Solid Knowledge of HTML coding, javascripts, forms and reconfigurations, please "Do Not Attempt" this until you are Proficient in the aforementioned areas.

Depending on your knowledge of HTML and javascripts, this is an easy two (2) part copy and paste code that goes in both the <HEAD> section (no reconfigurations) and incorporated into the <BODY> section of a working form.

Add-On Not Included In Script Little Extra Not Included In The Script:     Since the <HEAD> section of this code is very large (26k), you may want to consider making it into an external .js file so the page will not be so bloated with code. If you are a little unclear or need a little refresher on howto, it is quite simple. The <HEAD> section of code starts and ends with opening and closing JavaScript tags, See below:

  • Opens With:
    <SCRIPT LANGUAGE="JavaScript">

    26k worth of code goes here

  • Closes With:
    // End -->
    </script>
  1. Remove the opening and closing JavaScript tags.
  2. Copy/cut and paste everything in-between into a notepad and save it as zipState.js
  3. The newly created (Saved As) file will look something like this   zipState.js
  4. Upload the newly created zipState.js into your directory
  5. Paste the below snipplet of code into the <HEAD> section of your document to call zipState.js
    <script type="text/javascript" src="zipState.js"> </script>
  6. If you have uploaded the zipState.js into a different directory, you will have to change the path of the above to reflect the location.
  7. If changing the path is a little confusing, grab the below link and it is explained in detail.
    Upload To Different Directory ]

For Your Information For your Information:     In the <BODY> section of code the word Connecticut is spelled wrong. You can change it from:
        <option value="CT">Conneticut</option> To
        <option value="CT">Connecticut</option>

On A Final Note     On the site you get the code, the <HEAD> section of the copy and paste code is incorrect and you will get wrong states from entering certain zip codes. For example if you enter 30013 (Conyers GA.) the state you get will be "Other..." instead of Georgia. Unhappy Smiley. We have notified them of this error on 07/27/06. Until they rectify this error, you can get a good copy of the <HEAD> section of code below.
Get Good Copy Of <HEAD> Section Of Code Here  ]

W e hope our tutorial was easy to follow and we covered everything in detail. If you would like to add this effect into your pages, grab the respective below link and you are there. If you have any problems with this or anything else, feel free to consult our FAQ ] and if you can't find the answer there, contact us ].
Get Code Here ]   [ Rate This Page ]