US State List for Drupal Select List

Here’s a ready-to-go list of U.S. States suitable for use in Drupal (or any compliant CMS) that likes to see select options as pipe (|) separated key-value pairs on each line.

AL|Alabama
AK|Alaska
AZ|Arizona
AR|Arkansas
CA|California
CO|Colorado
CT|Connecticut
DE|Delaware
DC|District Of Columbia
FL|Florida
GA|Georgia
HI|Hawaii
ID|Idaho
IL|Illinois
IN|Indiana
IA|Iowa
KS|Kansas
KY|Kentucky
LA|Louisiana
ME|Maine
MD|Maryland
MA|Massachusetts
MI|Michigan
MN|Minnesota
MS|Mississippi
MO|Missouri
MT|Montana
NE|Nebraska
NV|Nevada
NH|New Hampshire
NJ|New Jersey
NM|New Mexico
NY|New York
NC|North Carolina
ND|North Dakota
OH|Ohio
OK|Oklahoma
OR|Oregon
PA|Pennsylvania
RI|Rhode Island
SC|South Carolina
SD|South Dakota
TN|Tennessee
TX|Texas
UT|Utah
VT|Vermont
VA|Virginia
WA|Washington
WV|West Virginia
WI|Wisconsin
WY|Wyoming

About these ads
Published in: on May 8, 2009 at 5:35 pm  Comments (14)  
Tags: , ,

The URI to TrackBack this entry is: http://dmcmeans.wordpress.com/2009/05/08/us-state-list-for-drupal-select-list/trackback/

RSS feed for comments on this post.

14 CommentsLeave a comment

  1. Super helpful! Thanks

  2. Thanks – You ROCK!

  3. thanks!

  4. Lovely. Exactly what I was looking for.

  5. [...] goes to Drupal Easy, DZone Snippets, USPS and David’s Blog for their posts.  I’ll add to this post in the future as I find other uses for the states [...]

  6. Thank you!

  7. Thansk!

  8. Handy.

    Also, if you’re looking for a country list there’s one on Drupal.org
    http://drupal.org/node/221490

  9. Thanks for the list above. I hope this helps someone, too:

    ‘AL’ => ‘Alabama’,
    ‘AK’ => ‘Alaska’,
    ‘AZ’ => ‘Arizona’,
    ‘AR’ => ‘Arkansas’,
    ‘CA’ => ‘California’,
    ‘CO’ => ‘Colorado’,
    ‘CT’ => ‘Connecticut’,
    ‘DE’ => ‘Delaware’,
    ‘DC’ => ‘District Of Columbia’,
    ‘FL’ => ‘Florida’,
    ‘GA’ => ‘Georgia’,
    ‘HI’ => ‘Hawaii’,
    ‘ID’ => ‘Idaho’,
    ‘IL’ => ‘Illinois’,
    ‘IN’ => ‘Indiana’,
    ‘IA’ => ‘Iowa’,
    ‘KS’ => ‘Kansas’,
    ‘KY’ => ‘Kentucky’,
    ‘LA’ => ‘Louisiana’,
    ‘ME’ => ‘Maine’,
    ‘MD’ => ‘Maryland’,
    ‘MA’ => ‘Massachusetts’,
    ‘MI’ => ‘Michigan’,
    ‘MN’ => ‘Minnesota’,
    ‘MS’ => ‘Mississippi’,
    ‘MO’ => ‘Missouri’,
    ‘MT’ => ‘Montana’,
    ‘NE’ => ‘Nebraska’,
    ‘NV’ => ‘Nevada’,
    ‘NH’ => ‘New Hampshire’,
    ‘NJ’ => ‘New Jersey’,
    ‘NM’ => ‘New Mexico’,
    ‘NY’ => ‘New York’,
    ‘NC’ => ‘North Carolina’,
    ‘ND’ => ‘North Dakota’,
    ‘OH’ => ‘Ohio’,
    ‘OK’ => ‘Oklahoma’,
    ‘OR’ => ‘Oregon’,
    ‘PA’ => ‘Pennsylvania’,
    ‘RI’ => ‘Rhode Island’,
    ‘SC’ => ‘South Carolina’,
    ‘SD’ => ‘South Dakota’,
    ‘TN’ => ‘Tennessee’,
    ‘TX’ => ‘Texas’,
    ‘UT’ => ‘Utah’,
    ‘VT’ => ‘Vermont’,
    ‘VA’ => ‘Virginia’,
    ‘WA’ => ‘Washington’,
    ‘WV’ => ‘West Virginia’,
    ‘WI’ => ‘Wisconsin’,
    ‘WY’ => ‘Wyoming’,

  10. Thank you lord.

  11. thanks, although I would not recommend using the state initials as the key. If you need a query sorting the states by alphabetical order, your order will be wrong.

  12. Perfect, thanks!

  13. can u put a xml like to upload easuily

  14. Hi there, just became aware of your blog through Google, and found that it’s truly informative.
    I’m gonna watch out for brussels. I will appreciate if you continue this in future.
    Many people will be benefited from your writing.
    Cheers!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: