Page 1 of 1

Populating Combo from db

Posted: Wed Jul 09, 2008 11:11 pm
by dumlee
I am having countries stored in db and want to show it to user in combo.

Please help.

After user selects country corresponding states should be shown in other combo.

Pls help

Re: Populating Combo from db

Posted: Wed Jul 09, 2008 11:18 pm
by califdon
dumlee wrote:I am having countries stored in db and want to show it to user in combo.

Please help.

After user selects country corresponding states should be shown in other combo.

Pls help
This is known as "cascading" dropdown lists. You will find many references if you use those as search terms in a web search engine. Here's one such reference:
http://forums.digitalpoint.com/showthread.php?t=703846

Re: Populating Combo from db

Posted: Thu Jul 10, 2008 5:06 am
by EverLearning
Take a look at the following link:

Chained selects
Chained Selects lets you "chain" multiple form select lists together so that the selection in a "parent" list can tailor the options available in a "child" list. Chained Selects supports unlimited number of form select lists in a "chain", as well as unlimited number of "chains" in a page.