Responsive country,state,city dropdown using PHP

By Prem Tiwari in Freebies, JavaScript, Mysql, PHP Tutorial. Updated on


I got many request to Responsive country,state,city dropdown values from the database without refresh page using Ajax and PHP. In this article, I’ve put three drop down of country,state,city, drop downs without refreshing the page.

All the country, state, city data and their licensing is free to use so you can use this data for any commercial or non commercial applications.

Responsive-Country-state-city

Include JS files

DbConnection.php Page

SearchRegion.php Page

SearchCity.php Page

Live Demo           Download

This code will full fill all your needs, if you are looking for list of countries states and cities in the world, country state city dropdown list, list of all countries states and cities in the world, country city state database, country state city database free download, list of all countries with states and cities, database of countries, database of countries states and cities, country state city database.

Sharing is caring!


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

You might also like:

Tags: , , , , , , , , , ,

3 thoughts on “Responsive country,state,city dropdown using PHP”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.