Countries Cities Script/code

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
svankamon
-


Joined: 01 Apr 2007
Posts: 148
Location: Chesterfield UK

PostPosted: Sun Sep 16, 2007 1:32 pm    Post subject: Countries Cities Script/code Reply with quote

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 View user's profile Send private message Send e-mail
pkSML
-


Joined: 29 May 2006
Posts: 955
Location: Michigan, USA

PostPosted: Sun Sep 16, 2007 7:15 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
svankamon
-


Joined: 01 Apr 2007
Posts: 148
Location: Chesterfield UK

PostPosted: Sun Sep 16, 2007 11:20 pm    Post subject: I Know It Reply with quote

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 View user's profile Send private message Send e-mail
svankamon
-


Joined: 01 Apr 2007
Posts: 148
Location: Chesterfield UK

PostPosted: Thu Sep 20, 2007 6:32 pm    Post subject: Did It Myself Reply with quote

It just seemed a big job, took about 8 hours. Sorted. Thanks.
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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


Powered by phpBB phpBB Group