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 COM 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 example, we use a fully functional IP2Location™ ActiveX component available at https://www.ip2location.com/software/active-x to query country by visitor’s IP address. For unregistered component, there is a 5-second delay in every query. First, install the ActiveX component in IIS web server. It could be as simple as running a command in DOS prompt.
C:\> regsvr32 ip2location.dll |
Sample Code:
<% ' Create server-side object Set ipObj = Server.CreateObject("IP2Location.Country") ' Initialize IP2Location object If ipObj.Initialize("demo") <> "OK" Then response.write "IP2Location Initialization Failed. End If ' Get visitor's IP address IPaddr = Request.ServerVariables("REMOTE_ADDR") ' Detect visitor's country of origin by IP address CountryCode = ipObj.LookUpShortName(IPaddr) ' Free IP2Location object Set ipObj = nothing %> <select name="country"> <option value="AF"<% IF CountryCode = "AF" THEN Response.Write(" selected") END IF %>>AFGHANISTAN</option> <option value="AL"<% IF CountryCode = "AL" THEN Response.Write(" selected") END IF %>>ALBANIA</option> <option value="DZ"<% IF CountryCode = "DZ" THEN Response.Write(" selected") END IF %>>ALGERIA</option> <option value="AS"<% IF CountryCode = "AS" THEN Response.Write(" selected") END IF %>>AMERICAN SAMOA</option> <option value="AD"<% IF CountryCode = "AD" THEN Response.Write(" selected") END IF %>>ANDORRA</option> <option value="AO"<% IF CountryCode = "AO" THEN Response.Write(" selected") END IF %>>ANGOLA</option> <option value="AI"<% IF CountryCode = "AI" THEN Response.Write(" selected") END IF %>>ANGUILLA</option> <option value="AQ"<% IF CountryCode = "AQ" THEN Response.Write(" selected") END IF %>>ANTARCTICA</option> <option value="AG"<% IF CountryCode = "AG" THEN Response.Write(" selected") END IF %>>ANTIGUA AND BARBUDA</option> <option value="AR"<% IF CountryCode = "AR" THEN Response.Write(" selected") END IF %>>ARGENTINA</option> <option value="AM"<% IF CountryCode = "AM" THEN Response.Write(" selected") END IF %>>ARMENIA</option> <option value="AW"<% IF CountryCode = "AW" THEN Response.Write(" selected") END IF %>>ARUBA</option> <option value="AP"<% IF CountryCode = "AP" THEN Response.Write(" selected") END IF %>>ASIA PACIFIC</option> <option value="AU"<% IF CountryCode = "AU" THEN Response.Write(" selected") END IF %>>AUSTRALIA</option> <option value="AT"<% IF CountryCode = "AT" THEN Response.Write(" selected") END IF %>>AUSTRIA</option> <option value="AZ"<% IF CountryCode = "AZ" THEN Response.Write(" selected") END IF %>>AZERBAIJAN</option> <option value="BS"<% IF CountryCode = "BS" THEN Response.Write(" selected") END IF %>>BAHAMAS</option> <option value="BH"<% IF CountryCode = "BH" THEN Response.Write(" selected") END IF %>>BAHRAIN</option> <option value="BD"<% IF CountryCode = "BD" THEN Response.Write(" selected") END IF %>>BANGLADESH</option> <option value="BB"<% IF CountryCode = "BB" THEN Response.Write(" selected") END IF %>>BARBADOS</option> <option value="BY"<% IF CountryCode = "BY" THEN Response.Write(" selected") END IF %>>BELARUS</option> <option value="BE"<% IF CountryCode = "BE" THEN Response.Write(" selected") END IF %>>BELGIUM</option> <option value="BZ"<% IF CountryCode = "BZ" THEN Response.Write(" selected") END IF %>>BELIZE</option> <option value="BJ"<% IF CountryCode = "BJ" THEN Response.Write(" selected") END IF %>>BENIN</option> <option value="BM"<% IF CountryCode = "BM" THEN Response.Write(" selected") END IF %>>BERMUDA</option> <option value="BT"<% IF CountryCode = "BT" THEN Response.Write(" selected") END IF %>>BHUTAN</option> <option value="BO"<% IF CountryCode = "BO" THEN Response.Write(" selected") END IF %>>BOLIVIA</option> <option value="BA"<% IF CountryCode = "BA" THEN Response.Write(" selected") END IF %>>BOSNIA AND HERZEGOWINA</option> <option value="BW"<% IF CountryCode = "BW" THEN Response.Write(" selected") END IF %>>BOTSWANA</option> <option value="BV"<% IF CountryCode = "BV" THEN Response.Write(" selected") END IF %>>BOUVET ISLAND</option> <option value="BR"<% IF CountryCode = "BR" THEN Response.Write(" selected") END IF %>>BRAZIL</option> <option value="IO"<% IF CountryCode = "IO" THEN Response.Write(" selected") END IF %>>BRITISH INDIAN OCEAN TERRITORY</option> <option value="BN"<% IF CountryCode = "BN" THEN Response.Write(" selected") END IF %>>BRUNEI DARUSSALAM</option> <option value="BG"<% IF CountryCode = "BG" THEN Response.Write(" selected") END IF %>>BULGARIA</option> <option value="BF"<% IF CountryCode = "BF" THEN Response.Write(" selected") END IF %>>BURKINA FASO</option> <option value="BI"<% IF CountryCode = "BI" THEN Response.Write(" selected") END IF %>>BURUNDI</option> <option value="KH"<% IF CountryCode = "KH" THEN Response.Write(" selected") END IF %>>CAMBODIA</option> <option value="CM"<% IF CountryCode = "CM" THEN Response.Write(" selected") END IF %>>CAMEROON</option> <option value="CA"<% IF CountryCode = "CA" THEN Response.Write(" selected") END IF %>>CANADA</option> <option value="CV"<% IF CountryCode = "CV" THEN Response.Write(" selected") END IF %>>CAPE VERDE</option> <option value="KY"<% IF CountryCode = "KY" THEN Response.Write(" selected") END IF %>>CAYMAN ISLANDS</option> <option value="CF"<% IF CountryCode = "CF" THEN Response.Write(" selected") END IF %>>CENTRAL AFRICAN REPUBLIC</option> <option value="TD"<% IF CountryCode = "TD" THEN Response.Write(" selected") END IF %>>CHAD</option> <option value="CL"<% IF CountryCode = "CL" THEN Response.Write(" selected") END IF %>>CHILE</option> <option value="CN"<% IF CountryCode = "CN" THEN Response.Write(" selected") END IF %>>CHINA</option> <option value="CX"<% IF CountryCode = "CX" THEN Response.Write(" selected") END IF %>>CHRISTMAS ISLAND</option> <option value="CC"<% IF CountryCode = "CC" THEN Response.Write(" selected") END IF %>>COCOS (KEELING) ISLANDS</option> <option value="CO"<% IF CountryCode = "CO" THEN Response.Write(" selected") END IF %>>COLOMBIA</option> <option value="KM"<% IF CountryCode = "KM" THEN Response.Write(" selected") END IF %>>COMOROS</option> <option value="CG"<% IF CountryCode = "CG" THEN Response.Write(" selected") END IF %>>CONGO</option> <option value="CD"<% IF CountryCode = "CD" THEN Response.Write(" selected") END IF %>>CONGO, THE DEMOCRATIC REPUBLIC OF THE</option> <option value="CK"<% IF CountryCode = "CK" THEN Response.Write(" selected") END IF %>>COOK ISLANDS</option> <option value="CR"<% IF CountryCode = "CR" THEN Response.Write(" selected") END IF %>>COSTA RICA</option> <option value="CI"<% IF CountryCode = "CI" THEN Response.Write(" selected") END IF %>>COTE D'IVOIRE</option> <option value="HR"<% IF CountryCode = "HR" THEN Response.Write(" selected") END IF %>>CROATIA</option> <option value="CU"<% IF CountryCode = "CU" THEN Response.Write(" selected") END IF %>>CUBA</option> <option value="CY"<% IF CountryCode = "CY" THEN Response.Write(" selected") END IF %>>CYPRUS</option> <option value="CZ"<% IF CountryCode = "CZ" THEN Response.Write(" selected") END IF %>>CZECH REPUBLIC</option> <option value="CS"<% IF CountryCode = "CS" THEN Response.Write(" selected") END IF %>>CZECHOSLOVAKIA (FORMER)</option> <option value="DK"<% IF CountryCode = "DK" THEN Response.Write(" selected") END IF %>>DENMARK</option> <option value="DJ"<% IF CountryCode = "DJ" THEN Response.Write(" selected") END IF %>>DJIBOUTI</option> <option value="DM"<% IF CountryCode = "DM" THEN Response.Write(" selected") END IF %>>DOMINICA</option> <option value="DO"<% IF CountryCode = "DO" THEN Response.Write(" selected") END IF %>>DOMINICAN REPUBLIC</option> <option value="TP"<% IF CountryCode = "TP" THEN Response.Write(" selected") END IF %>>EAST TIMOR</option> <option value="EC"<% IF CountryCode = "EC" THEN Response.Write(" selected") END IF %>>ECUADOR</option> <option value="EG"<% IF CountryCode = "EG" THEN Response.Write(" selected") END IF %>>EGYPT</option> <option value="SV"<% IF CountryCode = "SV" THEN Response.Write(" selected") END IF %>>EL SALVADOR</option> <option value="GQ"<% IF CountryCode = "GQ" THEN Response.Write(" selected") END IF %>>EQUATORIAL GUINEA</option> <option value="ER"<% IF CountryCode = "ER" THEN Response.Write(" selected") END IF %>>ERITREA</option> <option value="EE"<% IF CountryCode = "EE" THEN Response.Write(" selected") END IF %>>ESTONIA</option> <option value="ET"<% IF CountryCode = "ET" THEN Response.Write(" selected") END IF %>>ETHIOPIA</option> <option value="EU"<% IF CountryCode = "EU" THEN Response.Write(" selected") END IF %>>EUROPEAN UNION</option> <option value="FK"<% IF CountryCode = "FK" THEN Response.Write(" selected") END IF %>>FALKLAND ISLANDS (MALVINAS)</option> <option value="FO"<% IF CountryCode = "FO" THEN Response.Write(" selected") END IF %>>FAROE ISLANDS</option> <option value="FJ"<% IF CountryCode = "FJ" THEN Response.Write(" selected") END IF %>>FIJI</option> <option value="FI"<% IF CountryCode = "FI" THEN Response.Write(" selected") END IF %>>FINLAND</option> <option value="FR"<% IF CountryCode = "FR" THEN Response.Write(" selected") END IF %>>FRANCE</option> <option value="FX"<% IF CountryCode = "FX" THEN Response.Write(" selected") END IF %>>FRANCE, METROPOLITAN</option> <option value="GF"<% IF CountryCode = "GF" THEN Response.Write(" selected") END IF %>>FRENCH GUIANA</option> <option value="PF"<% IF CountryCode = "PF" THEN Response.Write(" selected") END IF %>>FRENCH POLYNESIA</option> <option value="TF"<% IF CountryCode = "TF" THEN Response.Write(" selected") END IF %>>FRENCH SOUTHERN TERRITORIES</option> <option value="GA"<% IF CountryCode = "GA" THEN Response.Write(" selected") END IF %>>GABON</option> <option value="GM"<% IF CountryCode = "GM" THEN Response.Write(" selected") END IF %>>GAMBIA</option> <option value="GE"<% IF CountryCode = "GE" THEN Response.Write(" selected") END IF %>>GEORGIA</option> <option value="DE"<% IF CountryCode = "DE" THEN Response.Write(" selected") END IF %>>GERMANY</option> <option value="GH"<% IF CountryCode = "GH" THEN Response.Write(" selected") END IF %>>GHANA</option> <option value="GI"<% IF CountryCode = "GI" THEN Response.Write(" selected") END IF %>>GIBRALTAR</option> <option value="GB"<% IF CountryCode = "GB" THEN Response.Write(" selected") END IF %>>GREAT BRITAIN</option> <option value="GR"<% IF CountryCode = "GR" THEN Response.Write(" selected") END IF %>>GREECE</option> <option value="GL"<% IF CountryCode = "GL" THEN Response.Write(" selected") END IF %>>GREENLAND</option> <option value="GD"<% IF CountryCode = "GD" THEN Response.Write(" selected") END IF %>>GRENADA</option> <option value="GP"<% IF CountryCode = "GP" THEN Response.Write(" selected") END IF %>>GUADELOUPE</option> <option value="GU"<% IF CountryCode = "GU" THEN Response.Write(" selected") END IF %>>GUAM</option> <option value="GT"<% IF CountryCode = "GT" THEN Response.Write(" selected") END IF %>>GUATEMALA</option> <option value="GN"<% IF CountryCode = "GN" THEN Response.Write(" selected") END IF %>>GUINEA</option> <option value="GW"<% IF CountryCode = "GW" THEN Response.Write(" selected") END IF %>>GUINEA-BISSAU</option> <option value="GY"<% IF CountryCode = "GY" THEN Response.Write(" selected") END IF %>>GUYANA</option> <option value="HT"<% IF CountryCode = "HT" THEN Response.Write(" selected") END IF %>>HAITI</option> <option value="HM"<% IF CountryCode = "HM" THEN Response.Write(" selected") END IF %>>HEARD ISLAND AND MCDONALD ISLANDS</option> <option value="VA"<% IF CountryCode = "VA" THEN Response.Write(" selected") END IF %>>HOLY SEE (VATICAN CITY STATE)</option> <option value="HN"<% IF CountryCode = "HN" THEN Response.Write(" selected") END IF %>>HONDURAS</option> <option value="HK"<% IF CountryCode = "HK" THEN Response.Write(" selected") END IF %>>HONG KONG</option> <option value="HU"<% IF CountryCode = "HU" THEN Response.Write(" selected") END IF %>>HUNGARY</option> <option value="IS"<% IF CountryCode = "IS" THEN Response.Write(" selected") END IF %>>ICELAND</option> <option value="IN"<% IF CountryCode = "IN" THEN Response.Write(" selected") END IF %>>INDIA</option> <option value="ID"<% IF CountryCode = "ID" THEN Response.Write(" selected") END IF %>>INDONESIA</option> <option value="IR"<% IF CountryCode = "IR" THEN Response.Write(" selected") END IF %>>IRAN, ISLAMIC REPUBLIC OF</option> <option value="IQ"<% IF CountryCode = "IQ" THEN Response.Write(" selected") END IF %>>IRAQ</option> <option value="IE"<% IF CountryCode = "IE" THEN Response.Write(" selected") END IF %>>IRELAND</option> <option value="IL"<% IF CountryCode = "IL" THEN Response.Write(" selected") END IF %>>ISRAEL</option> <option value="IT"<% IF CountryCode = "IT" THEN Response.Write(" selected") END IF %>>ITALY</option> <option value="JM"<% IF CountryCode = "JM" THEN Response.Write(" selected") END IF %>>JAMAICA</option> <option value="JP"<% IF CountryCode = "JP" THEN Response.Write(" selected") END IF %>>JAPAN</option> <option value="JO"<% IF CountryCode = "JO" THEN Response.Write(" selected") END IF %>>JORDAN</option> <option value="KZ"<% IF CountryCode = "KZ" THEN Response.Write(" selected") END IF %>>KAZAKSTAN</option> <option value="KE"<% IF CountryCode = "KE" THEN Response.Write(" selected") END IF %>>KENYA</option> <option value="KI"<% IF CountryCode = "KI" THEN Response.Write(" selected") END IF %>>KIRIBATI</option> <option value="KP"<% IF CountryCode = "KP" THEN Response.Write(" selected") END IF %>>KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF</option> <option value="KR"<% IF CountryCode = "KR" THEN Response.Write(" selected") END IF %>>KOREA, REPUBLIC OF</option> <option value="KW"<% IF CountryCode = "KW" THEN Response.Write(" selected") END IF %>>KUWAIT</option> <option value="KG"<% IF CountryCode = "KG" THEN Response.Write(" selected") END IF %>>KYRGYZSTAN</option> <option value="LA"<% IF CountryCode = "LA" THEN Response.Write(" selected") END IF %>>LAO PEOPLE'S DEMOCRATIC REPUBLIC</option> <option value="LV"<% IF CountryCode = "LV" THEN Response.Write(" selected") END IF %>>LATVIA</option> <option value="LB"<% IF CountryCode = "LB" THEN Response.Write(" selected") END IF %>>LEBANON</option> <option value="LS"<% IF CountryCode = "LS" THEN Response.Write(" selected") END IF %>>LESOTHO</option> <option value="LR"<% IF CountryCode = "LR" THEN Response.Write(" selected") END IF %>>LIBERIA</option> <option value="LY"<% IF CountryCode = "LY" THEN Response.Write(" selected") END IF %>>LIBYAN ARAB JAMAHIRIYA</option> <option value="LI"<% IF CountryCode = "LI" THEN Response.Write(" selected") END IF %>>LIECHTENSTEIN</option> <option value="LT"<% IF CountryCode = "LT" THEN Response.Write(" selected") END IF %>>LITHUANIA</option> <option value="LU"<% IF CountryCode = "LU" THEN Response.Write(" selected") END IF %>>LUXEMBOURG</option> <option value="MO"<% IF CountryCode = "MO" THEN Response.Write(" selected") END IF %>>MACAU</option> <option value="MK"<% IF CountryCode = "MK" THEN Response.Write(" selected") END IF %>>MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF</option> <option value="MG"<% IF CountryCode = "MG" THEN Response.Write(" selected") END IF %>>MADAGASCAR</option> <option value="MW"<% IF CountryCode = "MW" THEN Response.Write(" selected") END IF %>>MALAWI</option> <option value="MY"<% IF CountryCode = "MY" THEN Response.Write(" selected") END IF %>>MALAYSIA</option> <option value="MV"<% IF CountryCode = "MV" THEN Response.Write(" selected") END IF %>>MALDIVES</option> <option value="ML"<% IF CountryCode = "ML" THEN Response.Write(" selected") END IF %>>MALI</option> <option value="MT"<% IF CountryCode = "MT" THEN Response.Write(" selected") END IF %>>MALTA</option> <option value="MH"<% IF CountryCode = "MH" THEN Response.Write(" selected") END IF %>>MARSHALL ISLANDS</option> <option value="MQ"<% IF CountryCode = "MQ" THEN Response.Write(" selected") END IF %>>MARTINIQUE</option> <option value="MR"<% IF CountryCode = "MR" THEN Response.Write(" selected") END IF %>>MAURITANIA</option> <option value="MU"<% IF CountryCode = "MU" THEN Response.Write(" selected") END IF %>>MAURITIUS</option> <option value="YT"<% IF CountryCode = "YT" THEN Response.Write(" selected") END IF %>>MAYOTTE</option> <option value="MX"<% IF CountryCode = "MX" THEN Response.Write(" selected") END IF %>>MEXICO</option> <option value="FM"<% IF CountryCode = "FM" THEN Response.Write(" selected") END IF %>>MICRONESIA, FEDERATED STATES OF</option> <option value="MD"<% IF CountryCode = "MD" THEN Response.Write(" selected") END IF %>>MOLDOVA, REPUBLIC OF</option> <option value="MC"<% IF CountryCode = "MC" THEN Response.Write(" selected") END IF %>>MONACO</option> <option value="MN"<% IF CountryCode = "MN" THEN Response.Write(" selected") END IF %>>MONGOLIA</option> <option value="MS"<% IF CountryCode = "MS" THEN Response.Write(" selected") END IF %>>MONTSERRAT</option> <option value="MA"<% IF CountryCode = "MA" THEN Response.Write(" selected") END IF %>>MOROCCO</option> <option value="MZ"<% IF CountryCode = "MZ" THEN Response.Write(" selected") END IF %>>MOZAMBIQUE</option> <option value="MM"<% IF CountryCode = "MM" THEN Response.Write(" selected") END IF %>>MYANMAR</option> <option value="NA"<% IF CountryCode = "NA" THEN Response.Write(" selected") END IF %>>NAMIBIA</option> <option value="NR"<% IF CountryCode = "NR" THEN Response.Write(" selected") END IF %>>NAURU</option> <option value="NP"<% IF CountryCode = "NP" THEN Response.Write(" selected") END IF %>>NEPAL</option> <option value="NL"<% IF CountryCode = "NL" THEN Response.Write(" selected") END IF %>>NETHERLANDS</option> <option value="AN"<% IF CountryCode = "AN" THEN Response.Write(" selected") END IF %>>NETHERLANDS ANTILLES</option> <option value="NC"<% IF CountryCode = "NC" THEN Response.Write(" selected") END IF %>>NEW CALEDONIA</option> <option value="NZ"<% IF CountryCode = "NZ" THEN Response.Write(" selected") END IF %>>NEW ZEALAND</option> <option value="NI"<% IF CountryCode = "NI" THEN Response.Write(" selected") END IF %>>NICARAGUA</option> <option value="NE"<% IF CountryCode = "NE" THEN Response.Write(" selected") END IF %>>NIGER</option> <option value="NG"<% IF CountryCode = "NG" THEN Response.Write(" selected") END IF %>>NIGERIA</option> <option value="NU"<% IF CountryCode = "NU" THEN Response.Write(" selected") END IF %>>NIUE</option> <option value="NF"<% IF CountryCode = "NF" THEN Response.Write(" selected") END IF %>>NORFOLK ISLAND</option> <option value="MP"<% IF CountryCode = "MP" THEN Response.Write(" selected") END IF %>>NORTHERN MARIANA ISLANDS</option> <option value="NO"<% IF CountryCode = "NO" THEN Response.Write(" selected") END IF %>>NORWAY</option> <option value="OM"<% IF CountryCode = "OM" THEN Response.Write(" selected") END IF %>>OMAN</option> <option value="PK"<% IF CountryCode = "PK" THEN Response.Write(" selected") END IF %>>PAKISTAN</option> <option value="PW"<% IF CountryCode = "PW" THEN Response.Write(" selected") END IF %>>PALAU</option> <option value="PS"<% IF CountryCode = "PS" THEN Response.Write(" selected") END IF %>>PALESTINIAN TERRITORY, OCCUPIED</option> <option value="PA"<% IF CountryCode = "PA" THEN Response.Write(" selected") END IF %>>PANAMA</option> <option value="PG"<% IF CountryCode = "PG" THEN Response.Write(" selected") END IF %>>PAPUA NEW GUINEA</option> <option value="PY"<% IF CountryCode = "PY" THEN Response.Write(" selected") END IF %>>PARAGUAY</option> <option value="PE"<% IF CountryCode = "PE" THEN Response.Write(" selected") END IF %>>PERU</option> <option value="PH"<% IF CountryCode = "PH" THEN Response.Write(" selected") END IF %>>PHILIPPINES</option> <option value="PN"<% IF CountryCode = "PN" THEN Response.Write(" selected") END IF %>>PITCAIRN</option> <option value="PL"<% IF CountryCode = "PL" THEN Response.Write(" selected") END IF %>>POLAND</option> <option value="PT"<% IF CountryCode = "PT" THEN Response.Write(" selected") END IF %>>PORTUGAL</option> <option value="PR"<% IF CountryCode = "PR" THEN Response.Write(" selected") END IF %>>PUERTO RICO</option> <option value="QA"<% IF CountryCode = "QA" THEN Response.Write(" selected") END IF %>>QATAR</option> <option value="RE"<% IF CountryCode = "RE" THEN Response.Write(" selected") END IF %>>REUNION</option> <option value="RO"<% IF CountryCode = "RO" THEN Response.Write(" selected") END IF %>>ROMANIA</option> <option value="SU"<% IF CountryCode = "SU" THEN Response.Write(" selected") END IF %>>RUSSIAN FEDERATION</option> <option value="RW"<% IF CountryCode = "RW" THEN Response.Write(" selected") END IF %>>RWANDA</option> <option value="SH"<% IF CountryCode = "SH" THEN Response.Write(" selected") END IF %>>SAINT HELENA</option> <option value="KN"<% IF CountryCode = "KN" THEN Response.Write(" selected") END IF %>>SAINT KITTS AND NEVIS</option> <option value="LC"<% IF CountryCode = "LC" THEN Response.Write(" selected") END IF %>>SAINT LUCIA</option> <option value="PM"<% IF CountryCode = "PM" THEN Response.Write(" selected") END IF %>>SAINT PIERRE AND MIQUELON</option> <option value="VC"<% IF CountryCode = "VC" THEN Response.Write(" selected") END IF %>>SAINT VINCENT AND THE GRENADINES</option> <option value="WS"<% IF CountryCode = "WS" THEN Response.Write(" selected") END IF %>>SAMOA</option> <option value="SM"<% IF CountryCode = "SM" THEN Response.Write(" selected") END IF %>>SAN MARINO</option> <option value="ST"<% IF CountryCode = "ST" THEN Response.Write(" selected") END IF %>>SAO TOME AND PRINCIPE</option> <option value="SA"<% IF CountryCode = "SA" THEN Response.Write(" selected") END IF %>>SAUDI ARABIA</option> <option value="SN"<% IF CountryCode = "SN" THEN Response.Write(" selected") END IF %>>SENEGAL</option> <option value="YU"<% IF CountryCode = "YU" THEN Response.Write(" selected") END IF %>>SERBIA AND MONTENEGRO</option> <option value="SC"<% IF CountryCode = "SC" THEN Response.Write(" selected") END IF %>>SEYCHELLES</option> <option value="SL"<% IF CountryCode = "SL" THEN Response.Write(" selected") END IF %>>SIERRA LEONE</option> <option value="SG"<% IF CountryCode = "SG" THEN Response.Write(" selected") END IF %>>SINGAPORE</option> <option value="SK"<% IF CountryCode = "SK" THEN Response.Write(" selected") END IF %>>SLOVAKIA</option> <option value="SI"<% IF CountryCode = "SI" THEN Response.Write(" selected") END IF %>>SLOVENIA</option> <option value="SB"<% IF CountryCode = "SB" THEN Response.Write(" selected") END IF %>>SOLOMON ISLANDS</option> <option value="SO"<% IF CountryCode = "SO" THEN Response.Write(" selected") END IF %>>SOMALIA</option> <option value="ZA"<% IF CountryCode = "ZA" THEN Response.Write(" selected") END IF %>>SOUTH AFRICA</option> <option value="GS"<% IF CountryCode = "GS" THEN Response.Write(" selected") END IF %>>SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS</option> <option value="ES"<% IF CountryCode = "ES" THEN Response.Write(" selected") END IF %>>SPAIN</option> <option value="LK"<% IF CountryCode = "LK" THEN Response.Write(" selected") END IF %>>SRI LANKA</option> <option value="SD"<% IF CountryCode = "SD" THEN Response.Write(" selected") END IF %>>SUDAN</option> <option value="SR"<% IF CountryCode = "SR" THEN Response.Write(" selected") END IF %>>SURINAME</option> <option value="SJ"<% IF CountryCode = "SJ" THEN Response.Write(" selected") END IF %>>SVALBARD AND JAN MAYEN</option> <option value="SZ"<% IF CountryCode = "SZ" THEN Response.Write(" selected") END IF %>>SWAZILAND</option> <option value="SE"<% IF CountryCode = "SE" THEN Response.Write(" selected") END IF %>>SWEDEN</option> <option value="CH"<% IF CountryCode = "CH" THEN Response.Write(" selected") END IF %>>SWITZERLAND</option> <option value="SY"<% IF CountryCode = "SY" THEN Response.Write(" selected") END IF %>>SYRIAN ARAB REPUBLIC</option> <option value="TW"<% IF CountryCode = "TW" THEN Response.Write(" selected") END IF %>>TAIWAN, PROVINCE OF CHINA</option> <option value="TJ"<% IF CountryCode = "TJ" THEN Response.Write(" selected") END IF %>>TAJIKISTAN</option> <option value="TZ"<% IF CountryCode = "TZ" THEN Response.Write(" selected") END IF %>>TANZANIA, UNITED REPUBLIC OF</option> <option value="TH"<% IF CountryCode = "TH" THEN Response.Write(" selected") END IF %>>THAILAND</option> <option value="TG"<% IF CountryCode = "TG" THEN Response.Write(" selected") END IF %>>TOGO</option> <option value="TK"<% IF CountryCode = "TK" THEN Response.Write(" selected") END IF %>>TOKELAU</option> <option value="TO"<% IF CountryCode = "TO" THEN Response.Write(" selected") END IF %>>TONGA</option> <option value="TT"<% IF CountryCode = "TT" THEN Response.Write(" selected") END IF %>>TRINIDAD AND TOBAGO</option> <option value="TN"<% IF CountryCode = "TN" THEN Response.Write(" selected") END IF %>>TUNISIA</option> <option value="TR"<% IF CountryCode = "TR" THEN Response.Write(" selected") END IF %>>TURKEY</option> <option value="TM"<% IF CountryCode = "TM" THEN Response.Write(" selected") END IF %>>TURKMENISTAN</option> <option value="TC"<% IF CountryCode = "TC" THEN Response.Write(" selected") END IF %>>TURKS AND CAICOS ISLANDS</option> <option value="TV"<% IF CountryCode = "TV" THEN Response.Write(" selected") END IF %>>TUVALU</option> <option value="UG"<% IF CountryCode = "UG" THEN Response.Write(" selected") END IF %>>UGANDA</option> <option value="UA"<% IF CountryCode = "UA" THEN Response.Write(" selected") END IF %>>UKRAINE</option> <option value="AE"<% IF CountryCode = "AE" THEN Response.Write(" selected") END IF %>>UNITED ARAB EMIRATES</option> <option value="UK"<% IF CountryCode = "UK" THEN Response.Write(" selected") END IF %>>UNITED KINGDOM</option> <option value="US"<% IF CountryCode = "US" THEN Response.Write(" selected") END IF %>>UNITED STATES</option> <option value="UM"<% IF CountryCode = "UM" THEN Response.Write(" selected") END IF %>>UNITED STATES MINOR OUTLYING ISLANDS</option> <option value="UY"<% IF CountryCode = "UY" THEN Response.Write(" selected") END IF %>>URUGUAY</option> <option value="UZ"<% IF CountryCode = "UZ" THEN Response.Write(" selected") END IF %>>UZBEKISTAN</option> <option value="VU"<% IF CountryCode = "VU" THEN Response.Write(" selected") END IF %>>VANUATU</option> <option value="VE"<% IF CountryCode = "VE" THEN Response.Write(" selected") END IF %>>VENEZUELA</option> <option value="VN"<% IF CountryCode = "VN" THEN Response.Write(" selected") END IF %>>VIET NAM</option> <option value="VG"<% IF CountryCode = "VG" THEN Response.Write(" selected") END IF %>>VIRGIN ISLANDS, BRITISH</option> <option value="VI"<% IF CountryCode = "VI" THEN Response.Write(" selected") END IF %>>VIRGIN ISLANDS, U.S.</option> <option value="WF"<% IF CountryCode = "WF" THEN Response.Write(" selected") END IF %>>WALLIS AND FUTUNA</option> <option value="EH"<% IF CountryCode = "EH" THEN Response.Write(" selected") END IF %>>WESTERN SAHARA</option> <option value="YE"<% IF CountryCode = "YE" THEN Response.Write(" selected") END IF %>>YEMEN</option> <option value="ZM"<% IF CountryCode = "ZM" THEN Response.Write(" selected") END IF %>>ZAMBIA</option> <option value="ZW"<% IF CountryCode = "ZW" THEN Response.Write(" selected") END IF %>>ZIMBABWE</option> </select>