We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

location countries and cities list | Forum

Onur
Onur Aug 3 '20
i want to create here a location countries and cities list.

how can i do it. i want to make to list countries and cities. after user will be choose a country. he will choose also cities too. Any idea?


dave Leader
dave Aug 4 '20

There are several ways - in simple terms:


1. Build two arrays, one for country and one for city. Then assign a dropdown menu for each array and have the user select their options.


2. Build one array with all country and city data.  When they select a country then the cities for that country are displayed.


3. download a pre-existing array dataset that has all the information in there.


4. Include a third party script that adds the values to  your website.



The Forum post is edited by dave Aug 4 '20
G1
G1 Sep 7 '20
very easy to do