jim.davidson Posted May 20, 2008 Share Posted May 20, 2008 I have two tables one for states and one for counties for all states states counties state_id county_id abbreviation county_name state_name state I have two drop down menus on a form, one to select the state and another to select the county. What I need to do is this The user selects a state from the drop down menu and that selection determines what counties I need to get for the second drop down menu for county. How can I do this all on the same input form? Any help will be appreciated Link to comment https://forums.phpfreaks.com/topic/106460-need-some-advice-on-populating-a-drop-down-menu/ Share on other sites More sharing options...
947740 Posted May 20, 2008 Share Posted May 20, 2008 You could use a PHP form that is called when they select the state. The script performs a query that searches the database for the corresponding information, and the page reloads with the appropriate countries listed. Link to comment https://forums.phpfreaks.com/topic/106460-need-some-advice-on-populating-a-drop-down-menu/#findComment-545673 Share on other sites More sharing options...
MadTechie Posted May 20, 2008 Share Posted May 20, 2008 read here Dynamic DropDown PHP/AJAX Link to comment https://forums.phpfreaks.com/topic/106460-need-some-advice-on-populating-a-drop-down-menu/#findComment-545674 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.