country and city list for Drupal7

Dear experts,

I would like to create a content type field inside users profile page that drops down a country list (like a hundred countries), then depends on which country is selected then only display cities in the second drop down list.

Could you please help me to see what would be the best way to do this?

Thanks in advance,

Winter
glepizaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
You can use geonames as a webservice or download 8million cities to your hearts content.  I would try the webservices first http://www.geonames.org/
0
glepizaAuthor Commented:
Cool thanks, do you know how can I add it as a content type field?
0
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
I'm sorry, I answered this on the basis of knowing the data and possibly using ajax/jquery to do a look up.  However, I found there is a geonames module https://drupal.org/project/geonames.  Perhaps somebody else with more drupal experience can chime in.  

Does that link look like it provides what you are looking for?
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

glepizaAuthor Commented:
Hi padas,

Well, I installed the module, but can´t see how can I added as a content type. Still digging it :)
0
Aaron FeledyDrupal Developer and ConsultantCommented:
Try this module. I believe you can configure it to do something similar to what you are asking: https://drupal.org/project/addressfield
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
glepizaAuthor Commented:
Thanks! that is what I was looking for
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Drupal

From novice to tech pro — start learning today.