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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.