Aisha Posted May 12, 2012 Share Posted May 12, 2012 hi i hav used the select statement to display states from a database. now i want for any state clicked,it should retrieve the towns as another select option. how do i do that pls. :'( Link to comment https://forums.phpfreaks.com/topic/262459-select-options/ Share on other sites More sharing options...
Eiolon Posted May 12, 2012 Share Posted May 12, 2012 You are wanting a chained select. The drops downs need to be produced with javascript so I would have a mod move this to that forum for best results. Link to comment https://forums.phpfreaks.com/topic/262459-select-options/#findComment-1345037 Share on other sites More sharing options...
ManiacDan Posted May 12, 2012 Share Posted May 12, 2012 This is the most common use case for a technology called AJAX. google for "ajax change drop-down" and you'll find thousands of articles. Link to comment https://forums.phpfreaks.com/topic/262459-select-options/#findComment-1345042 Share on other sites More sharing options...
Aisha Posted May 14, 2012 Author Share Posted May 14, 2012 thank u maniacDan. am greatfull Link to comment https://forums.phpfreaks.com/topic/262459-select-options/#findComment-1345281 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.