CodeIgniter Forums
Hi all - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Hi all (/showthread.php?tid=53743)



Hi all - El Forum - 08-07-2012

[eluser]Unknown[/eluser]
Am working on project in which i have a registration form for users, there are two drop down menus , one for selecting state, and other for cities(districts), I have two tables in my database called states and districts, and the dropdowns should be dynamic.

what i need is when i select a particular state, the corresponding districts should be there in the second dropdown.

in database in district table i have Stateid as foreign key

please help me.
thank u .


Hi all - El Forum - 08-07-2012

[eluser]skunkbad[/eluser]
If you take a look at community auth, it has an example to auto populate dropdowns.