How to get every state or province in the world based on Country using PHP?
<p>I am requiring users who register on my site to specify their location. For this I have 2 selects:</p>

<pre><code>Country

State/Province
</code></pre>

<p>I found snippets online that list every country in a select option format. But how can I populate the State/Province dropdown based on what the user selected in the 1st country dropdown?</p>

<p>I know I have to do it through AJAX, but I am referring to the data itself. What can I use to determine all the states/provinces for each country in the world?</p>

<p>And what would be an example of the implementation please.</p>
