Description: This script looks up a city and state for a given zip code from the USPS web cgi
for the same task. I made it for a shopping cart shipping information form
where we determine the city and state by a user selection from a list of valid
cities and states for their zip code. I decided to post it here because I am angry
that there are no publicly available free zip code databases. One would think it should be public record. This script simply posts a fake browser POST to USPS' web cgi for looking up zip codes and formats the data returned into nice variables and prints out the results in a table. Hopefully this will save someone out there the time and money involved in the purchase of a zip code database. I wrote this script August 1st 2001, and as long as the USPS haven't changed their zip code lookup cgi this script will work fine for you. Simply post a 'shipZip' field to this script, and you will be returned a table of valid cities and states for that zip code courtesy of USPS.