Database Link (developers information)
Connecting directly to one of our database's assures the quickest possible response time. We offer a choice of both Microsoft SQL Server or MYSQL connections.


Connecting directly to one of our database's assures the quickest possible response time. We offer a choice of both Microsoft SQL Server or MYSQL connections.
Another method of pulling information from our database is to incorporate request variables.
The simpliest form of this method is to click on the link below (use the browser's
back button to return to here).
http://www.zip2tax.com/Link/Lookup_Sample.asp?zip=90210&pwd=user_pwd
Or you can paste this line of code into any browser's URL box.
You will see that you looked up the data using the request variables. You may wish to try other zip codes (between 90001 and 92999) to see the results.
Now we want to have the
results passed back to us in a useful format. At the end of the URL we are going to add a
return request variable as shown.
http://www.zip2tax.com/Link/Lookup_Sample.asp?zip=90210&pwd=user_pwd&ret=http://www.Zip2Tax.com/Link/DisplayResults.asp
Instead of displaying the results directly to the browser as in the Quick Link example, the data is being passed to a separate page using request variables and the new page is displaying the data. This new page should reside on your server and can be written in any language.
Rather Than returning the information in a plain string, you may prefer to have data passed back using the XML Format
The simpliest way to view XML is to click on the link below (use the browser's
back button to return to here).
http://www.zip2tax.com/Link/Lookup_Sample_XML.asp?zip=90210&pwd=user_pwd
Or you can paste this line of code into any browser's URL box.
When XML is returned to your browser it will look differently depending on your browser brand (IE, Firefox) and version. But, the information is the same. In a practical application you would typically read the results into a requestXML object.
You may wish to try other zip codes (between 90001 and 92999) to see the results.
Two fields have been added for error handling, error_code and error_message. Below is a list of possible results . . .
| 0 | "No Errors" |
| 1 | "Missing Zip Code" |
| 2 | "Missing Password" |
| 3 | "Connection Error" |
| 4 | "Zip Code Less than 5 Characters" |
| 5 | "Zip Code Out of Range for Sample" |
| 6 | "Incorrect Password" |
| 7 | "Zip Code Not Found" |
| 99 | "Error Unknown" |