rameshfaj Posted March 7, 2007 Share Posted March 7, 2007 Hi there,I have list A and List B(selection lists).The contents of selection list A are generated from the mysql database.When the user clicks one of the value of the selection listA,Some values should be populated for the selection listB.The contents of the selection list B too should be populated from the database but can vary according to the value,the user selects in the selection listA. Can anyone provide me the code? Link to comment https://forums.phpfreaks.com/topic/41589-selection-list/ Share on other sites More sharing options...
ldsmike88 Posted March 17, 2007 Share Posted March 17, 2007 1) Find a good multiple select list tutorial online. 2) Query MySQL with php every time the values in the database get changed. When you query it use php to write a new selectList.js file to pull the values from. This way you don't have to wait for the second list to load, it will load instantly. Link to comment https://forums.phpfreaks.com/topic/41589-selection-list/#findComment-209607 Share on other sites More sharing options...
ScotDiddle Posted April 23, 2007 Share Posted April 23, 2007 rameshfaj, I found that this AJAX select list works perfectly. // http://www.fornewbie.com/article/php/create_ajax_dynamic_drop_down_list_using_php_-_xajax.html Scot L. Diddle, Richmond VA. Link to comment https://forums.phpfreaks.com/topic/41589-selection-list/#findComment-235906 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.