tags:

views:

98

answers:

5

Kind of a programming question...

You create a sign up form and their address is taken from a list of countries and cities. Is there somewhere on the interwebs I can grab these lists from to stick in my listboxes?

+1  A: 

if u use asp

http://www.codeproject.com/aspnet/CountryCombo.asp

This one only has countries

Haim Evgi
+3  A: 

This seems to be a good list regardless of the language you want to use. You would need to do some filtering as the country name is prefixed by the shorthand version. It's based on this ISO list.

mensch
A: 

Country list can be grabbed from:

http://en.wikipedia.org/wiki/List%5Fof%5Fsovereign%5Fstates

But list of all cities of all countries, I think even if you can get that, it would be a bad options. Just let the user enter the city. Though you can have states of some big countries where your visitors are mainly from.

Priyank Bolia
+3  A: 

Try this list

http://www.iso.org/iso/country_codes/iso_3166_code_lists.htm

Scoregraphic
Thanks very much!
SLC
A: 

You could take a look at either of these two for geographic data webservices. I would suggest letting the user input their location and then looking it up via these services, or you can download the data from geonames

(The GeoNames geographical database covers all countries and contains over eight million placenames that are available for download free of charge.)

http://www.geonames.org

http://developer.yahoo.com/geo/geoplanet/

Nick Allen - Tungle139