www.webdeveloper.com
Results 1 to 7 of 7

Thread: select drop down country codes

  1. #1
    Join Date
    Mar 2005
    Location
    planet earth
    Posts
    121

    Smile select drop down country codes

    couldn't believe i couldn't find one of these on tinternet..

    Code:
    <option Value="004">Afghanistan</option>
    <option Value="008">Albania</option>
    <option Value="012">Algeria</option>
    <option Value="016">American Samoa</option>
    <option Value="020">Andorra</option>
    <option Value="024">Angola</option>
    <option Value="660">Anguilla</option>
    <option Value="010">Antarctica</option>
    <option Value="028">Antigua And Barbuda</option>
    <option Value="032">Argentina</option>
    <option Value="051">Armenia</option>
    <option Value="533">Aruba</option>
    <option Value="036">Australia</option>
    <option Value="040">Austria</option>
    <option Value="031">Azerbaijan</option>
    <option Value="044">Bahamas</option>
    <option Value="048">Bahrain</option>
    <option Value="050">Bangladesh</option>
    <option Value="052">Barbados</option>
    <option Value="112">Belarus</option>
    <option Value="056">Belgium</option>
    <option Value="084">Belize</option>
    <option Value="204">Benin</option>
    <option Value="060">Bermuda</option>
    <option Value="064">Bhutan</option>
    <option Value="068">Bolivia</option>
    <option Value="070">Bosnia And Herzegowina</option>
    <option Value="072">Botswana</option>
    <option Value="074">Bouvet Island</option>
    <option Value="076">Brazil</option>
    <option Value="086">British Indian Ocean Territory</option>
    <option Value="096">Brunei Darussalam</option>
    <option Value="100">Bulgaria</option>
    <option Value="854">Burkina Faso</option>
    <option Value="108">Burundi</option>
    <option Value="116">Cambodia</option>
    <option Value="120">Cameroon</option>
    <option Value="124">Canada</option>
    <option Value="132">Cape Verde</option>
    <option Value="136">Cayman Islands</option>
    <option Value="140">Central African Republic</option>
    <option Value="148">Chad</option>
    <option Value="152">Chile</option>
    <option Value="156">China</option>
    <option Value="162">Christmas Island</option>
    <option Value="166">Cocos (Keeling) Islands</option>
    <option Value="170">Colombia</option>
    <option Value="174">Comoros</option>
    <option Value="178">Congo</option>
    <option Value="180">Congo, The Drc</option>
    <option Value="184">Cook Islands</option>
    <option Value="188">Costa Rica</option>
    <option Value="384">Cote D'ivoire</option>
    <option Value="191">Croatia</option>
    <option Value="192">Cuba</option>
    <option Value="196">Cyprus</option>
    <option Value="203">Czech Republic</option>
    <option Value="208">Denmark</option>
    <option Value="262">Djibouti</option>
    <option Value="212">Dominica</option>
    <option Value="214">Dominican Republic</option>
    <option Value="626">East Timor</option>
    <option Value="218">Ecuador</option>
    <option Value="818">Egypt</option>
    <option Value="222">El Salvador</option>
    <option Value="226">Equatorial Guinea</option>
    <option Value="232">Eritrea</option>
    <option Value="233">Estonia</option>
    <option Value="231">Ethiopia</option>
    <option Value="238">Falkland Islands</option>
    <option Value="234">Faroe Islands</option>
    <option Value="242">Fiji</option>
    <option Value="246">Finland</option>
    <option Value="250">France</option>
    <option Value="249">France, Metropolitan</option>
    <option Value="254">French Guiana</option>
    <option Value="258">French Polynesia</option>
    <option Value="260">French Southern Territories</option>
    <option Value="266">Gabon</option>
    <option Value="270">Gambia</option>
    <option Value="268">Georgia</option>
    <option Value="276">Germany</option>
    <option Value="288">Ghana</option>
    <option Value="292">Gibraltar</option>
    <option Value="300">Greece</option>
    <option Value="304">Greenland</option>
    <option Value="308">Grenada</option>
    <option Value="312">Guadeloupe</option>
    <option Value="316">Guam</option>
    <option Value="320">Guatemala</option>
    <option Value="324">Guinea</option>
    <option Value="624">Guinea-bissau</option>
    <option Value="328">Guyana</option>
    <option Value="332">Haiti</option>
    <option Value="334">Heard And Mc Donald Islands</option>
    <option Value="340">Honduras</option>
    <option Value="344">Hong Kong</option>
    <option Value="348">Hungary</option>
    <option Value="352">Iceland</option>
    <option Value="356">India</option>
    <option Value="360">Indonesia</option>
    <option Value="364">Iran (Islamic Republic Of)</option>
    <option Value="368">Iraq</option>
    <option Value="372">Ireland</option>
    <option Value="380">Italy</option>
    <option Value="388">Jamaica</option>
    <option Value="392">Japan</option>
    <option Value="400">Jordan</option>
    <option Value="398">Kazakhstan</option>
    <option Value="404">Kenya</option>
    <option Value="296">Kiribati</option>
    <option Value="408">Korea, D.P.R.O.</option>
    <option Value="410">Korea, Republic Of</option>
    <option Value="414">Kuwait</option>
    <option Value="417">Kyrgyzstan</option>
    <option Value="418">Laos </option>
    <option Value="428">Latvia</option>
    <option Value="422">Lebanon</option>
    <option Value="426">Lesotho</option>
    <option Value="430">Liberia</option>
    <option Value="434">Libyan Arab Jamahiriya</option>
    <option Value="438">Liechtenstein</option>
    <option Value="440">Lithuania</option>
    <option Value="442">Luxembourg</option>
    <option Value="446">Macau</option>
    <option Value="807">Macedonia</option>
    <option Value="450">Madagascar</option>
    <option Value="454">Malawi</option>
    <option Value="458">Malaysia</option>
    <option Value="462">Maldives</option>
    <option Value="466">Mali</option>
    <option Value="470">Malta</option>
    <option Value="584">Marshall Islands</option>
    <option Value="474">Martinique</option>
    <option Value="478">Mauritania</option>
    <option Value="480">Mauritius</option>
    <option Value="175">Mayotte</option>
    <option Value="484">Mexico</option>
    <option Value="583">Micronesia, Federated States Of</option>
    <option Value="498">Moldova, Republic Of</option>
    <option Value="492">Monaco</option>
    <option Value="496">Mongolia</option>
    <option Value="500">Montserrat</option>
    <option Value="504">Morocco</option>
    <option Value="508">Mozambique</option>
    <option Value="104">Myanmar (Burma) </option>
    <option Value="516">Namibia</option>
    <option Value="520">Nauru</option>
    <option Value="524">Nepal</option>
    <option Value="528">Netherlands</option>
    <option Value="530">Netherlands Antilles</option>
    <option Value="540">New Caledonia</option>
    <option Value="554">New Zealand</option>
    <option Value="558">Nicaragua</option>
    <option Value="562">Niger</option>
    <option Value="566">Nigeria</option>
    <option Value="570">Niue</option>
    <option Value="574">Norfolk Island</option>
    <option Value="580">Northern Mariana Islands</option>
    <option Value="578">Norway</option>
    <option Value="512">Oman</option>
    <option Value="586">Pakistan</option>
    <option Value="585">Palau</option>
    <option Value="591">Panama</option>
    <option Value="598">Papua New Guinea</option>
    <option Value="600">Paraguay</option>
    <option Value="604">Peru</option>
    <option Value="608">Philippines</option>
    <option Value="612">Pitcairn</option>
    <option Value="616">Poland</option>
    <option Value="620">Portugal</option>
    <option Value="630">Puerto Rico</option>
    <option Value="634">Qatar</option>
    <option Value="638">Reunion</option>
    <option Value="642">Romania</option>
    <option Value="643">Russian Federation</option>
    <option Value="646">Rwanda</option>
    <option Value="659">Saint Kitts And Nevis</option>
    <option Value="662">Saint Lucia</option>
    <option Value="670">Saint Vincent And The Grenadines</option>
    <option Value="882">Samoa</option>
    <option Value="674">San Marino</option>
    <option Value="678">Sao Tome And Principe</option>
    <option Value="682">Saudi Arabia</option>
    <option Value="686">Senegal</option>
    <option Value="690">Seychelles</option>
    <option Value="694">Sierra Leone</option>
    <option Value="702">Singapore</option>
    <option Value="703">Slovakia (Slovak Republic)</option>
    <option Value="705">Slovenia</option>
    <option Value="090">Solomon Islands</option>
    <option Value="706">Somalia</option>
    <option Value="710">South Africa</option>
    <option Value="239">South Georgia And South S.S.</option>
    <option Value="724">Spain</option>
    <option Value="144">Sri Lanka</option>
    <option Value="654">St. Helena</option>
    <option Value="666">St. Pierre And Miquelon</option>
    <option Value="736">Sudan</option>
    <option Value="740">Suriname</option>
    <option Value="744">Svalbard And Jan Mayen Islands</option>
    <option Value="748">Swaziland</option>
    <option Value="752">Sweden</option>
    <option Value="756">Switzerland</option>
    <option Value="760">Syrian Arab Republic</option>
    <option Value="158">Taiwan, Province Of China</option>
    <option Value="762">Tajikistan</option>
    <option Value="834">Tanzania, United Republic Of</option>
    <option Value="764">Thailand</option>
    <option Value="768">Togo</option>
    <option Value="772">Tokelau</option>
    <option Value="776">Tonga</option>
    <option Value="780">Trinidad And Tobago</option>
    <option Value="788">Tunisia</option>
    <option Value="792">Turkey</option>
    <option Value="795">Turkmenistan</option>
    <option Value="796">Turks And Caicos Islands</option>
    <option Value="798">Tuvalu</option>
    <option Value="800">Uganda</option>
    <option Value="804">Ukraine</option>
    <option Value="784">United Arab Emirates</option>
    <option Value="826" selected="selected">United Kingdom</option>
    <option Value="840">United States</option>
    <option Value="581">U.S. Minor Islands</option>
    <option Value="858">Uruguay</option>
    <option Value="860">Uzbekistan</option>
    <option Value="548">Vanuatu</option>
    <option Value="862">Venezuela</option>
    <option Value="704">Viet Nam</option>
    <option Value="092">Virgin Islands (British)</option>
    <option Value="850">Virgin Islands (U.S.)</option>
    <option Value="876">Wallis And Futuna Islands</option>
    <option Value="732">Western Sahara</option>
    <option Value="887">Yemen</option>
    <option Value="891">Yugoslavia (Serbia And Montenegro)</option>
    <option Value="894">Zambia</option>
    <option Value="716">Zimbabwe</option>
    Last edited by hitecbill; 02-02-2008 at 08:11 PM.
    captain, i've spotted an M-class planet!

    http://eupeople.net/forum

  2. #2
    Join Date
    Jan 2008
    Location
    Florida
    Posts
    1,227
    I think you just did.

    (hey, and so did I!)

  3. #3
    Join Date
    Nov 2006
    Posts
    134
    cool.

    don't have need for this at the moment, but someday maybe

    I am sure someone will appreciate it.

    S!
    Jason

  4. #4
    Join Date
    Mar 2005
    Location
    planet earth
    Posts
    121
    thx guys

    i actually used editplus, which has a great "column paste" function..

    only took me about 10 minutes, but might be useful to someone..


    i've been building an interface to the dreadful HSBC CPI integration suite..and needed something like this.
    captain, i've spotted an M-class planet!

    http://eupeople.net/forum

  5. #5
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    What are the values supposed to represent. I have never come across 36 in connection with Australia before.

    What were you trying to search on? I have several pages where I have Country dropdown selection lists available that would have saved you typing most of that.
    Stephen

  6. #6
    Join Date
    Mar 2005
    Location
    planet earth
    Posts
    121
    Quote Originally Posted by felgall
    What are the values supposed to represent. I have never come across 36 in connection with Australia before.

    What were you trying to search on? I have several pages where I have Country dropdown selection lists available that would have saved you typing most of that.
    haha, if you think i'm gonna type all that, you're crazy!

    they are ISO country codes.

    i copied the codes list, pasted it into a file, then replaced the new line with the html code:

    replace /n with ">/n<option value="

    then top and tail it. that gives you your first column.

    then, as mentioned above, used editplus rather cool column paste feature to paste the countries next to this column.

    then, did a similar thing with the countries:
    replace /n with </option>/n


    like i said, it took me about 10 minutes.

    if anyone can use it, good luck to ya
    captain, i've spotted an M-class planet!

    http://eupeople.net/forum

  7. #7
    Join Date
    Apr 2006
    Posts
    245
    Quote Originally Posted by hitecbill View Post
    haha, if you think i'm gonna type all that, you're crazy!

    they are ISO country codes.

    i copied the codes list, pasted it into a file, then replaced the new line with the html code:

    replace /n with ">/n<option value="

    then top and tail it. that gives you your first column.

    then, as mentioned above, used editplus rather cool column paste feature to paste the countries next to this column.

    then, did a similar thing with the countries:
    replace /n with </option>/n


    like i said, it took me about 10 minutes.

    if anyone can use it, good luck to ya
    Thanks, I always wondered what these codes meant.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles