Database
{ sales@ip2location.com }
With the emergence of online technologies such as the Internet, people and businesses have
increased their reliance and use of these mediums as an avenue for commerce as it can be more
convenient. During the transaction online, there are times when it is important to preset the web
visitor's country of origin, ZIP code, ISP and domain name at the drop down list to prevent fraud and
to ease the complexity of registration task. This article shows you how by using ASP and MS-SQL
Technology, it can be done.
Let us take a simple example of a user login from Canada and he needs to fill up a shopping cart. The
form may be quite complex as some businesses need more information to prevent fraud. In this
case, there are needs to preset certain info in the drop down list such as country of origin, ZIP code,
ip and domain name of where the users login. As a result, the drop down list in this example will
preset to Cananda, with the correct zip code and ip address.
In this tutorial, we use the IP2Location™ IP-Country database to lookup country of origin from the
visitor's IP address. The full version of IP-Country database is available for subscription at $49/year
from http://www.ip2location.com. If you have the full version of IP2Location™ IP-Country
database, import process is easy done by using the Database Transformation Service (DTS) in MS-
SQL.
<select name="country">
<%
Dim conn, myDNS, mySQL, rs