This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Country, Region, Town...


  1. M202A1
    Member

    How can i import or insert a long list of countries to a drop down without having to do it manually? Can it be done via the MySQL?

    Posted 15 years ago #
  2. sjones
    Member

    There should be a default list of countries already. Are there some missing?

    Around line 959 of view-functions.php you should see:
    //Address
    function display_address($element){

    $country[0]['label'] = "Afghanistan";
    $country[1]['label'] = "Albania";

    and so on. There are almost 200 countries listed.

    Posted 15 years ago #
  3. M202A1
    Member

    Yes but i do not want my users to have to give their home address. All i need is the geographical area like country, town, city, etc. I have created my own manual one that took a long time to tweak but i actually like it like that.

    Posted 15 years ago #

RSS feed for this topic

Reply