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?
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?
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.
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.
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.)