CForms Plugin – select box code for all 50 US States

So maybe there’s a hidden ‘insert all 50 states’ button somewhere that I’m missing in setting up yet another CForms contact form, but me and Google sure didn’t find anything enlightening on the subject, so I thought I’d share the formatted code and save you some typing. The code below should be pasted right into a form field under ‘field name’ where you want to create a dropdown select box list of the 50 US states, like so:

cforms-states

Be sure you select ‘select box’ in the ‘type’ column.

State # AL | AL # AK | AK # AZ | AZ # AR | AR # CA | CA # CO | CO # CT | CT # DE | DE # DC | DC # FL | FL # GA | GA # HI | HI # ID | ID # IL | IL # IN | IN # IA | IA # KS | KS # KY | KY # LA | LA # ME | ME # MD | MD # MA | MA # MI | MI # MN | MN # MS | MS # MO | MO # MT | MT # NE | NE # NV | NV # NH | NH # NJ | NJ # NM | NM # NY | NY # NC | NC # ND | ND # OH | OH # OK | OK # OR | OR # PA | PA # RI | RI # SC | SC # SD | SD # TN | TN # TX | TX # UT | UT # VT | VT # VA | VA # WA | WA # WV | WV # WI | WI # WY | WY

9 Responses to “CForms Plugin – select box code for all 50 US States”

  1. Valerie says:

    You seriously rock. Thanks for sharing and saving me all this typing! :)

  2. Auz says:

    Yep, appreciate that!

  3. scott says:

    Thank you. that helped me out. It would be nice is cforms site had little shortcut tricks like this available.

    Thanks again

  4. gweedo says:

    Also found a full on version with state names:


    State#-- Please select a state --|-#ALABAMA (AL)|ALABAMA (AL)#ALASKA (AK)|ALASKA (AK)#AMERICAN SAMOA (AS)|AMERICAN SAMOA (AS)#ARIZONA (AZ)|ARIZONA (AZ)#ARKANSAS (AR)|ARKANSAS (AR)#CALIFORNIA (CA)|CALIFORNIA (CA)#COLORADO (CO)|COLORADO (CO)#CONNECTICUT (CT)|CONNECTICUT (CT)#DELAWARE (DE)|DELAWARE (DE)#DISTRICT OF COLUMBIA (DC)|DISTRICT OF COLUMBIA (DC)#FEDERATED STATES OF MICRONESIA (FM)|FEDERATED STATES OF MICRONESIA (FM)#FLORIDA (FL)|FLORIDA (FL)#GEORGIA (GA)|GEORGIA (GA)#GUAM (GU)|GUAM (GU)#HAWAII (HI)|HAWAII (HI)#IDAHO (ID)|IDAHO (ID)#ILLINOIS (IL)|ILLINOIS (IL)#INDIANA (IN)|INDIANA (IN)#IOWA (IA)|IOWA (IA)#KANSAS (KS)|KANSAS (KS)#KENTUCKY (KY)|KENTUCKY (KY)#LOUISIANA (LA)|LOUISIANA (LA)#MAINE (ME)|MAINE (ME)#MARSHALL ISLANDS (MH)|MARSHALL ISLANDS (MH)#MARYLAND (MD)|MARYLAND (MD)#MASSACHUSETTS (MA)|MASSACHUSETTS (MA)#MICHIGAN (MI)|MICHIGAN (MI)#MINNESOTA (MN)|MINNESOTA (MN)#MISSISSIPPI (MS)|MISSISSIPPI (MS)#MISSOURI (MO)|MISSOURI (MO)#MONTANA (MT)|MONTANA (MT)#NEBRASKA (NE)|NEBRASKA (NE)#NEVADA (NV)|NEVADA (NV)#NEW HAMPSHIRE (NH)|NEW HAMPSHIRE (NH)#NEW JERSEY (NJ)|NEW JERSEY (NJ)#NEW MEXICO (NM)|NEW MEXICO (NM)#NEW YORK (NY)|NEW YORK (NY)#NORTH CAROLINA (NC)|NORTH CAROLINA (NC)#NORTH DAKOTA (ND)|NORTH DAKOTA (ND)#NORTHERN MARIANA ISLANDS (MP)|NORTHERN MARIANA ISLANDS (MP)#OHIO (OH)|OHIO (OH)#OKLAHOMA (OK)|OKLAHOMA (OK)#OREGON (OR)|OREGON (OR)#PALAU (PW)|PALAU (PW)#PENNSYLVANIA (PA)|PENNSYLVANIA (PA)#PUERTO RICO (PR)|PUERTO RICO (PR)#RHODE ISLAND (RI)|RHODE ISLAND (RI)#SOUTH CAROLINA (SC)|SOUTH CAROLINA (SC)#SOUTH DAKOTA (SD)|SOUTH DAKOTA (SD)#TENNESSEE (TN)|TENNESSEE (TN)#TEXAS (TX)|TEXAS (TX)#UTAH (UT)|UTAH (UT)#VERMONT (VT)|VERMONT (VT)#VIRGIN ISLANDS (VI)|VIRGIN ISLANDS (VI)#VIRGINIA (VA)|VIRGINIA (VA)#WASHINGTON (WA)|WASHINGTON (WA)#WEST VIRGINIA (WV)|WEST VIRGINIA (WV)#WISCONSIN (WI)|WISCONSIN (WI)#WYOMING (WY)|WYOMING (WY)#-----------------------------------|-----------------------------------#Armed Forces Africa (AE)|Armed Forces Africa (AE)#Armed Forces Americas (AA) (except Canada)|Armed Forces Americas (AA) (except Canada)#Armed Forces Canada (AE)|Armed Forces Canada (AE)#Armed Forces Europe (AE)|Armed Forces Europe (AE)#Armed Forces Middle East (AE)|Armed Forces Middle East (AE)#Armed Forces Pacific (AP)|Armed Forces Pacific (AP)#

  5. James says:

    Excellent!! Great list!

  6. Pete says:

    Thanks so much, I originally typed it in, then erased it on accident. You saved me a load of time and meaningless effort….

  7. Revan says:

    Select box code for all Countries !!!

    Country||#Select Country|-#Afghanistan|Afghanistan#Albania|Albania#Algeria|Algeria#American Samoa|American Samoa#Andorra|Andorra#Angola|Angola#Anguilla|Anguilla#Antarctica|Antarctica
    #Antigua and Barbuda|Antigua and Barbuda#Argentina|Argentina#Armenia|Armenia#Aruba|Aruba#Australia|Australia#Austria|Austria#Azerbaijan|Azerbaijan#Bahamas|Bahamas
    #Bahrain|Bahrain#Bangladesh|Bangladesh#Barbados|Barbados#Belarus|Belarus#Belgium|Belgium#Belize|Belize#Benin|Benin#Bermuda|Bermuda#Bhutan|Bhutan#Bolivia|Bolivia
    #Bosnia and Herzegovina|Bosnia and Herzegovina#Botswana|Botswana#Bouvet Island|Bouvet Island#Brazil|Brazil#British Indian Ocean Territory|British Indian Ocean Territory
    #Brunei Darussalam|Brunei Darussalam#Bulgaria|Bulgaria#Burkina Faso|Burkina Faso#Burundi|Burundi#Cambodia|Cambodia#Cameroon|Cameroon#Canada|Canada#Cape Verde|Cape Verde
    #Cayman Islands|Cayman Islands#Central African Republic|Central African Republic#Chad|Chad#Chile|Chile#China|China#Christmas Island|Christmas Island#Cocos (Keeling) Islands|Cocos (Keeling) Islands
    #Colombia|Colombia#Comoros|Comoros#Congo|Congo#Congo, The Democratic Republic of The|Congo, The Democratic Republic of The#Cook Islands|Cook Islands#Costa Rica|Costa Rica
    #Croatia|Croatia#Cuba|Cuba#Cyprus|Cyprus#Czech Republic|Czech Republic#Denmark|Denmark#Djibouti|Djibouti#Dominica|Dominica#Dominican Republic|Dominican Republic
    #Ecuador|Ecuador#Egypt|Egypt#El Salvador|El Salvador#Equatorial Guinea|Equatorial Guinea#Eritrea|Eritrea#Estonia|Estonia#Ethiopia|Ethiopia#Falkland Islands (Malvinas)|Falkland Islands (Malvinas)
    #Faroe Islands|Faroe Islands#Fiji|Fiji#Finland|Finland#France|France#French Guiana|French Guiana#French Polynesia|French Polynesia#French Southern Territories|French Southern Territories
    #Gabon|Gabon#Gambia|Gambia#Georgia|Georgia#Germany|Germany#Ghana|Ghana#Gibraltar|Gibraltar#Greece|Greece#Greenland|Greenland#Grenada|Grenada#Guadeloupe|Guadeloupe
    #Guam|Guam#Guatemala|Guatemala#Guinea|Guinea#Guinea-bissau|Guinea-bissau#Guyana|Guyana#Haiti|Haiti#Heard Island and Mcdonald Islands|Heard Island and Mcdonald Islands
    #Holy See (Vatican City State)|Holy See (Vatican City State)#Honduras|Honduras#Hong Kong|Hong Kong#Hungary|Hungary#Iceland|Iceland#India|India#Indonesia|Indonesia
    #Iran|Iran#Iraq|Iraq#Ireland|Ireland#Israel|Israel#Italy|Italy#Jamaica|Jamaica#Japan|Japan#Jordan|Jordan#Kazakhstan|Kazakhstan#Kenya|Kenya#Kiribati|Kiribati
    #Korea|Korea#Kuwait|Kuwait#Kyrgyzstan|Kyrgyzstan#Latvia|Latvia#Lebanon|Lebanon#Lesotho|Lesotho#Liberia|Liberia#Libyan Arab Jamahiriya|Libyan Arab Jamahiriya
    #Liechtenstein|Liechtenstein#Lithuania|Lithuania#Luxembourg|Luxembourg#Macao|Macao#Macedonia, The Former Yugoslav Republic of|Macedonia, The Former Yugoslav Republic of
    #Madagascar|Madagascar#Malawi|Malawi#Malaysia|Malaysia#Maldives|Maldives#Mali|Mali#Malta|Malta#Marshall Islands|Marshall Islands#Martinique|Martinique#Mauritania|Mauritania
    #Mauritius|Mauritius#Mayotte|Mayotte#Mexico|Mexico#Micronesia|Micronesia#Moldova|Moldova#Monaco|Monaco#Mongolia|Mongolia#Montserrat|Montserrat#Morocco|Morocco#Mozambique|Mozambique
    #Myanmar|Myanmar#Namibia|Namibia#Nauru|Nauru#Nepal|Nepal#Netherlands|Netherlands#Netherlands Antilles|Netherlands Antilles#New Caledonia|New Caledonia#New Zealand|New Zealand
    #Nicaragua|Nicaragua#Niger|Niger#Nigeria|Nigeria#Niue|Niue#Norfolk Island|Norfolk Island#Northern Mariana Islands|Northern Mariana Islands#Norway|Norway#Oman|Oman
    #Pakistan|Pakistan#Palau|Palau#Palestinian Territory, Occupied|Palestinian Territory, Occupied#Panama|Panama#Papua New Guinea|Papua New Guinea#Paraguay|Paraguay#Peru|Peru
    #Philippines|Philippines#Pitcairn|Pitcairn#Poland|Poland#Portugal|Portugal#Puerto Rico|Puerto Rico#Qatar|Qatar#Reunion|Reunion#Romania|Romania#Russian Federation|Russian Federation
    #Rwanda|Rwanda#Saint Helena|Saint Helena#Saint Kitts and Nevis|Saint Kitts and Nevis#Saint Lucia|Saint Lucia#Saint Pierre and Miquelon|Saint Pierre and Miquelon
    #Saint Vincent and The Grenadines|Saint Vincent and The Grenadines#Samoa|Samoa#San Marino|San Marino#Sao Tome and Principe|Sao Tome and Principe#Saudi Arabia|Saudi Arabia
    #Senegal|Senegal#Serbia and Montenegro|Serbia and Montenegro#Seychelles|Seychelles#Sierra Leone|Sierra Leone#Singapore|Singapore#Slovakia|Slovakia#Slovenia|Slovenia
    #Solomon Islands|Solomon Islands#Somalia|Somalia#South Africa|South Africa#South Georgia and The South Sandwich Islands|South Georgia and The South Sandwich Islands
    #Spain|Spain#Sri Lanka|Sri Lanka#Sudan|Sudan#Suriname|Suriname#Svalbard and Jan Mayen|Svalbard and Jan Mayen#Swaziland|Swaziland#Sweden|Sweden#Switzerland|Switzerland
    #Syrian Arab Republic|Syrian Arab Republic#Taiwan, Province of China|Taiwan, Province of China#Tajikistan|Tajikistan#Tanzania, United Republic of|Tanzania, United Republic of
    #Thailand|Thailand#Timor-leste|Timor-leste#Togo|Togo#Tokelau|Tokelau#Tonga|Tonga#Trinidad and Tobago|Trinidad and Tobago#Tunisia|Tunisia#Turkey|Turkey#Turkmenistan|Turkmenistan
    #Turks and Caicos Islands|Turks and Caicos Islands#Tuvalu|Tuvalu#Uganda|Uganda#Ukraine|Ukraine#United Arab Emirates|United Arab Emirates#United Kingdom|United Kingdom#United States|United States
    #United States Minor Outlying Islands|United States Minor Outlying Islands#Uruguay|Uruguay#Uzbekistan|Uzbekistan#Vanuatu|Vanuatu#Venezuela|Venezuela#Viet Nam|Viet Nam#Virgin Islands, British|Virgin Islands, British
    #Virgin Islands, U.S.|Virgin Islands, U.S.#Wallis and Futuna|Wallis and Futuna#Western Sahara|Western Sahara#Yemen|Yemen#Zambia|Zambia#Zimbabwe|Zimbabwe

    Enjoy !!!

Leave a Reply