Three linked dropdowns using AJAX, PHP and MySQL

Select a country to load its states. Select a state to load matching cities. The page does not reload while the two dependent lists update.

Choose a country to begin.
How the AJAX request works

The browser requests JSON from ajax-dd3ck.php. A country selection requests states; a state selection requests cities.