Results 1 to 14 of 14

Thread: Country and State/Province Dropdown

  1. #1

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236

    Country and State/Province Dropdown

    Does anybody know where I can find a State/Province dropdown list (alphabetical order) as well as a dropdown of the Countries in the world?

  2. #2
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    try going to a website that requires registration to do member stuff!

    software websites such as macromedia adobe etc usually have these kinds of lists

  3. #3
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609

    Question

    doesnt windows have one somewhere ?? i could have sworn i have. ??

    ME!

  4. #4
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    you miss the point ubunreal69 as this is a html forum.

    We must assume that TheGoldenShogun wants to put these lists on a website.

    Rather than typing them out TheGoldenShogun wants to copy and paste the list into his webpage to save his fingers from rubbing away at the ends !

    Therefore TheGoldenShogun needs a website that contains these list so that TheGoldenShogun can view source !

  5. #5
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    hehehehehe, sorry but that was funny. yeh, there are a lot of lazy people out there and sorry but i do enjoy having my work being totally 100% original. but yeh, it does kinda make life easier.

    and whe i copied the list of countries on the different time zones off windows it took me like 3 hours and when i was done i didnt like what i was doing and therefore scrapped the whole project. thats called experience. anyways, whatever you recon hey.

    ME!

  6. #6

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    as a programmer you should always be looking for the easiest way to get something done, because lets face it, our man hours need to be spent wisely (well actually most of us are lazy). I did go to some websites and got some dropdowns. Whenever someone comes across this, these list will save them some time.


    <!--2 Character State -->
    <select name='State'>
    <option value="00">--</option>
    <option value="AA">AA</option>
    <option value="AE">AE</option>
    <option value="AK">AK</option>
    <option value="AL">AL</option>
    <option value="AP">AP</option>
    <option value="AR">AR</option>
    <option value="AZ">AZ</option>
    <option value="CA">CA</option>
    <option value="CO">CO</option>
    <option value="CT">CT</option>
    <option value="DC">DC</option>
    <option value="DE">DE</option>
    <option value="FL">FL</option>
    <option value="GA">GA</option>
    <option value="HI">HI</option>
    <option value="IA">IA</option>
    <option value="ID">ID</option>
    <option value="IL">IL</option>
    <option value="IN">IN</option>
    <option value="KS">KS</option>
    <option value="KY">KY</option>
    <option value="LA">LA</option>
    <option value="MA">MA</option>
    <option value="MD">MD</option>
    <option value="ME">ME</option>
    <option value="MI">MI</option>
    <option value="MN">MN</option>
    <option value="MO">MO</option>
    <option value="MS">MS</option>
    <option value="MT">MT</option>
    <option value="NC">NC</option>
    <option value="ND">ND</option>
    <option value="NE">NE</option>
    <option value="NH">NH</option>
    <option value="NJ">NJ</option>
    <option value="NM">NM</option>
    <option value="NV">NV</option>
    <option value="NY">NY</option>
    <option value="OH">OH</option>
    <option value="OK">OK</option>
    <option value="OR">OR</option>
    <option value="PA">PA</option>
    <option value="RI">RI</option>
    <option value="SC">SC</option>
    <option value="SD">SD</option>
    <option value="TN">TN</option>
    <option value="TX">TX</option>
    <option value="UT">UT</option>
    <option value="VA">VA</option>
    <option value="VT">VT</option>
    <option value="WA">WA</option>
    <option value="WI">WI</option>
    <option value="WV">WV</option>
    <option value="WY">WY</option>
    </select>

    <!-- 2 Character Country Code -->
    <select name='Country'>
    <option value="AR">AR Argentina
    <option value="AT">AT Austria
    <option value="AU">AU Australia
    <option value="AW">AW Aruba
    <option value="BB">BB Barbados
    <option value="BE">BE Belgium
    <option value="BM">BM Bermuda
    <option value="BR">BR Brazil
    <option value="BS">BS Bahamas
    <option value="CA">CA Canada
    <option value="KY">KY Cayman Islands
    <option value="CL">CL Chile
    <option value="CN">CN China
    <option value="CR">CR Costa Rica
    <option value="CY">CY Cyprus
    <option value="DK">DK Denmark
    <option value="EG">EG Egypt
    <option value="FI">FI Finland
    <option value="FJ">FJ Fiji
    <option value="FR">FR France
    <option value="FX">FX France, Metropolitan
    <option value="DE">DE Germany
    <option value="GR">GR Greece
    <option value="GL">GL Greenland
    <option value="GU">GU Guam
    <option value="GT">GT Guatemala
    <option value="HK">HK Hong Kong
    <option value="IS">IS Iceland
    <option value="IE">IE Ireland
    <option value="IL">IL Israel
    <option value="IT">IT Italy
    <option value="JM">JM Jamaica
    <option value="JP">JP Japan
    <option value="KR">KR Korea, Republic of
    <option value="KW">KW Kuwait
    <option value="LU">LU Luxembourg
    <option value="MO">MO Macau
    <option value="MW">MW Malawi
    <option value="MX">MX Mexico
    <option value="MC">MC Monaco
    <option value="NC">NC New Caledonia
    <option value="NL">NL Netherlands
    <option value="AN">AN Netherlands Antilles
    <option value="NZ">NZ New Zealand
    <option value="NF">NF Norfolk Island
    <option value="NO">NO Norway
    <option value="PA">PA Panama
    <option value="PE">PE Peru
    <option value="PG">PG Papua New Guinea
    <option value="PH">PH Philippines
    <option value="PL">PL Poland
    <option value="PR">PR Puerto Rico
    <option value="PT">PT Portugal
    <option value="SA">SA Saudi Arabia
    <option value="SG">SG Singapore
    <option value="ZA">ZA South Africa
    <option value="ES">ES Spain
    <option value="SE">SE Sweden
    <option value="CH">CH Switzerland
    <option value="TW">TW Taiwan
    <option value="TH">TH Thailand
    <option value="TR">TR Turkey
    <option value="TT">TT Trinidad and Tobago
    <option value="AE">AE United Arab Emirates
    <option value="UK">UK United Kingdom
    <option checked value="US">US United States
    <option value="UM">UM US Minor Outlying Islands
    <option value="VE">VE Venezuela
    <option value="VI">VI Virgin Islands (U.S.)
    </select>

    There ya go, if anybody else needs this like I did yesterday, its right here.

  7. #7
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    Can't see me using it much, seeing as living in the uk the websites I develop are for uk comapnies.

    Nice find though! maybe you should find one for your friends over here in the UK.....lol just kidding!

    I agree with you on looking for the easiest way to get a programme running to a certain extent, but sometimes it is better to take the long way round to make sure theres no loop holes!

    All depends on the programme.

    IMHO:
    It is better to find something like your country list before you start coding though, otherwise you might end up hacking what you've already produced to incorporate somebody else's code

  8. #8
    scoutt
    Guest
    Originally posted by ubunreal69
    hehehehehe, sorry but that was funny. yeh, there are a lot of lazy people out there and sorry but i do enjoy having my work being totally 100% original. but yeh, it does kinda make life easier.

    and whe i copied the list of countries on the different time zones off windows it took me like 3 hours and when i was done i didnt like what i was doing and therefore scrapped the whole project. thats called experience. anyways, whatever you recon hey.

    ME!
    you mean to tell me you don't reuse your code. you type everything new everytime?? also tell me where this list is in windows as I never seen one in there.

  9. #9
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    scoutt: i bet the list in windows wasn't html just an unformatted list of states and countries

    I bet ubunreal69 then added the html manually rather than writing a script (10 lines at the most) that formatted it for him.

    That's why it took him 3hrs+.....LMAO

    no offence ubunreal69!!

  10. #10

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    yeah thinking about a problem or doing data entry for a program for 3 hours just isn't very effecient, especially when you have forums and other peoples code you could snatch up in five minutes. God bless the internet!

  11. #11
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    For people with the ability to teach them selves the Internet is the greatest place on earth to Learn.
    I've self taught myself the basics of about 6 languages over the past year thanks to the internet!

  12. #12
    scoutt
    Guest
    Originally posted by progressive
    scoutt: i bet the list in windows wasn't html just an unformatted list of states and countries

    I bet ubunreal69 then added the html manually rather than writing a script (10 lines at the most) that formatted it for him.

    That's why it took him 3hrs+.....LMAO

    no offence ubunreal69!!
    yeah that might be a possibility, poor kid

  13. #13
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609

    La La La La La La La La

    hmmmmm, well, i dont not re-use my code, i just dont like copy@pasting other peoples work, i like creating my own stuff.

    - TheGoldenShogun: I didnt do it for a job, i am only 17 and havnt got a pro job yet, and when i do i still wont do it in 3 hours, i will have experience in it and wont have to spend half an hour deciding on colors and formats. and sorry, i was mistaken, it wasnt states / countrys, it was the time zones ( microsoft has multiple countrys dedicated to certain time zones and clients like working with something thats familiar to then; or so i was thinking @ the time but i could have done such a better job now )

    - progressive: no offence

    ME!

  14. #14
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    we live to learn!

Posting Permissions

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



Click Here to Expand Forum to Full Width