HOw to provide all states and countries

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dumlee
Forum Commoner
Posts: 33
Joined: Mon Jun 30, 2008 12:06 am

HOw to provide all states and countries

Post by dumlee »

HOw to provide all states and countries to a user without manually populating the list.

I am not having list of states for every country please help for that also.
Dynamis
Forum Contributor
Posts: 122
Joined: Thu Jul 10, 2008 3:15 pm
Location: Indiana, US

Re: HOw to provide all states and countries

Post by Dynamis »

The only way I know of doing this is to find a pre-made DB you can download, with all of that information already in the DB, and then pull from the DB to populate your list.

Here are some links to get you started:
http://vidmar.net/weblog/archive/2008/0 ... codes.aspx
http://www.tech-evangelist.com/2008/06/ ... tes-table/
Post Reply