Zip code checker

Using this script, you can check wether a given city name and a zip code actually belong together.

To do that, the script will redirect the user to one of two pages, depending on wether the assignment is correct or not.

The script takes the following parameters:

All other parameters will be passed to the next page without any change. (using GET parameters)

Example:

A page contains the folloring form:

<FORM METHOD=POST ACTION=/zip.cgi>
<INPUT TYPE=TEXT NAME="name">
<INPUT TYPE=TEXT NAME="street">
<INPUT TYPE=TEXT NAME="city">
<INPUT TYPE=TEXT NAME="zip">
<INPUT TYPE=submit VALUE="Go">
<INPUT TYPE=HIDDEN NAME="yes"
  VALUE="http://www.YourName.de/save.cgi">
<INPUT TYPE=HIDDEN NAME="no"
  VALUE="http://www.YourName.de/error.cgi">

The following is entered into the form:

name="Hein Meier"
street="Sackgasse 1, Ecke Einbahnstr."
city=Berlin
zip=13834

After submitting this data, the script will redirect to the URL given in the 'yes' parameter (it actually was a Berlin zip code) and passes along all remaining parameters. The called URL is:

http://www.YourName.de/save.cgi?name=Hein%20Meier&\
street=Sackgasse%201,%20Ecke%20Einbahnstr.&city=Berlin&zip=13834

Were it a non-Berlin zip code, the resulting URL might be:

http://www.YourName.de/error.cgi?name=Hein%20Meier&\
street=Sackgasse%201,%20Ecke%20Einbahnstr.&city=Berlin&\
zip=47804&truename=KREFELD

Special notes:

Frequently asked quesions: