Using this script, you can check wether a given bank code exists.
To do that, the script will redirect the user to one of two pages, depending on wether the bank code exists.
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 following form:
<FORM METHOD=POST ACTION=/zip.cgi> <INPUT TYPE=TEXT NAME="accountnumer"> <INPUT TYPE=TEXT NAME="blz"> <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:
accountnumber="987654321"
blz="100 12345"
After submitting this data, the script will redirect to the URL given in the 'yes' patameter (the bank code exists) and passes along all remaining patameters. The called URL is:
http://www.YourName.de/speichern.cgi?accountnumber="987654321"&\ blz="100 12345"
Were it a non-existing bank code, the resulting URL might be:
http://www.YourName.de/error.cgi?accountnumber="987654321"&\ blz="100 12345"