View previous topic :: View next topic |
Author |
Message |
svankamon -
Joined: 01 Apr 2007 Posts: 148 Location: Chesterfield UK
|
Posted: Sun Sep 16, 2007 1:32 pm Post subject: Countries Cities Script/code |
|
|
Hi All. Im looking for a countries/cities piece of code to place in my countries cities drop down menu.
The code should be in this format:
Any ideas or guidance would be gratefully received.
CHEERS.:
"USA" => array ("Akron OH", "Albany NY", "Albuquerque NM", "Allentown PA", "Anchorage AK", "Atlanta GA", "Atlantic City NJ", "Austin TX", "Baltimore MD", "Baton Rouge LA", "Billings MT", "Birmingham etc.
"Australia" => array ("Adelaide", "Brisbane", "Melbourne", "Sydney", "other (Australia)" ),
"Canada" => array ("Barrie", "Calgary", "Edmonton", "Halifax", "Kelowna", "Montreal", "Ottawa", "Quebec", "Saskatchewan", "Toronto", "Vancouver", "Victoria", "Winnipeg", "other (Canada)" ),
"China" => array ("Beijing", "Hong Kong", "Shanghai", "other (China)" ), |
|
Back to top |
|
 |
pkSML -
Joined: 29 May 2006 Posts: 955 Location: Michigan, USA
|
Posted: Sun Sep 16, 2007 7:15 pm Post subject: |
|
|
First of all, that's a WHOLE LOT of work for something so simple that a user can type in.
Anyways, to get you started: http://stephen.calvarybucyrus.org/search/list+of+ohio+cities
You'd have to do a lot of work manually, but this would get you all the cities in the US by doing each state.
If you're looking for major cities, look at an atlas (they're usually highlighted in yellow). Or you might find a list of cities for each state on the internet that sorts cities by their population.
Any way you go, it's a lot of work. Better to do it by zip code and get their city that way. _________________ Stephen
Need a LitlURL?
http://CodeBin.yi.org |
|
Back to top |
|
 |
svankamon -
Joined: 01 Apr 2007 Posts: 148 Location: Chesterfield UK
|
Posted: Sun Sep 16, 2007 11:20 pm Post subject: I Know It |
|
|
The drop down is a regular on a lot of sites. They must get a script from somewhere. However, looks like il do it myself. Should do it in a couple of days but was hoping i could buy it for $20. (He He He He).
Thanks for post. You did however make the picture in my mind of it smaller than it was.?? Somehow. Understand that. I dont. Cheers again. |
|
Back to top |
|
 |
svankamon -
Joined: 01 Apr 2007 Posts: 148 Location: Chesterfield UK
|
Posted: Thu Sep 20, 2007 6:32 pm Post subject: Did It Myself |
|
|
It just seemed a big job, took about 8 hours. Sorted. Thanks. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|