Buy Cheap Software - Discount Software
pimpMyJoomla Board
Welcome, Guest
Please Login or Register.
Lost Password?
State Selector (1 viewing)
_GEN_GOTOBOTTOM Post Reply

TOPIC: State Selector

#712
evilrobot (User)
Gold Boarder
Posts: 42
graphgraph
State Selector 2007/05/24 18:29 Karma: 0  
Copy this into the Default Value of a select field to get a list of states:

Select A State,2|Alabama,3|Alaska,4|Arizona,5|Arkansas,6|California,7|Colorado,8|Connecticut,9|Deleware,10|Di st of Columbia,11|Florida,12|Georgia,13|Hawaii,14|Idaho,15|Illinois,16|Indiana,17|Iowa,18|Kansas,19|Kentuc ky,20|Lousiana,21|Maine,22|Maryland,23|Massachusetts,24|Michigan,25|Minnesota,26|Mississippi,27|Miss ouri,28|Montana,29|Nebraska,30|Nevada,31|New Hampshire,32|New Jersey,33|New Mexico,34|New York,35|North Carolina,36|North Dakota,37|Ohio,38|Oklahoma,39|Oregon,40|Pennsylvania,41|Rhode Island,42|South Carolina,43|South Dakota,44|Tennessee,45|Texas,46|Utah,47|Vermont,48|Washington,49|West Virginia,50|Wisconsin,51|Wyoming
  The topic has been locked.
#713
alex (Admin)
Admin
Posts: 301
graph
Re:State Selector 2007/05/24 20:02 Karma: 8  
Thanks for your contribution.

Also this could be usefull

AK|Alaska,AL|Alabama,AR|Arkansas,AZ|Arizona,CA|California,CO|Colorado,CT|Connecticut,DC|DistofColumb ia,DE|Delaware,FL|Florida,GA|Georgia,GU|Guam,HI|Hawaii,IA|Iowa,ID|Idaho,IL|Illinois,IN|Indiana,KS|Ka nsas,KY|Kentucky,LA|Louisiana,MA|Massachusetts,MD|Maryland,ME|Maine,MI|Michigan,MN|Minnesota,MO|Miss ouri,MS|Mississippi,MT|Montana,NC|NorthCarolina,ND|NorthDakota,NE|Nebraska,NH|NewHampshire,NJ|NewJer sey,NM|NewMexico,NV|Nevada,NY|NewYork,OH|Ohio,OK|Oklahoma,OR|Oregon,PA|Pennsylvania,PR|PuertoRico,RI |RhodeIsland,SC|SouthCarolina,SD|SouthDakota,TN|Tennessee,TX|Texas,UT|Utah,VA|Virginia,VI|VirginIsla nds,VT|Vermont,WA|Washington,WI|Wisconsin,WV|WestVirginia,WY|Wyoming
  The topic has been locked.
#714
evilrobot (User)
Gold Boarder
Posts: 42
graphgraph
Re:State Selector 2007/05/24 20:14 Karma: 0  
I almost did it like that, but I wasn't sure which way to go. I haven't actually gotten to the point where I can test the data received from a form.

I'm curious, will the way that I did it return a number value for the selected state, and the way you did return the Abbreviation?

If so I'm going to change it to your way since it wouldn't make much since to me if I just get a numerical value back.

Post edited by: evilrobot, at: 2007/05/24 20:15
  The topic has been locked.
#725
alex (Admin)
Admin
Posts: 301
graph
Re:State Selector 2007/05/25 00:49 Karma: 8  
Yes, the first part is the value returned when you select something, the second is the one that user sees when the select box is being displayed.
  The topic has been locked.
#755
evilrobot (User)
Gold Boarder
Posts: 42
graphgraph
Re:State Selector 2007/05/25 16:10 Karma: 0  
Just noticed your addition of US territories - Nice!
  The topic has been locked.
_GEN_GOTOTOP Post Reply
© Copyright 2007 Best of Joomla, Powered by FireBoardget the latest posts directly to your desktop