Welcome Guest, Not a member yet? Register   Sign In
Hi all
#1

[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 .
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB