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!
I need to develop a dynamic dependent dropdown on my site. I have a MySQL database with 2 tables, State and County. The State table only has 1 column, State and the County table has 2 columns, State and County.
I would like to allow users to select a State and have the County dropdown only show the Counties in the State selected. Can anyone help me figure this out?
once the user selects the state, use javascript to submit the information automatically. Now you have a variable to work with to dynamically change your html.