Jump to content

Selection List!


rameshfaj

Recommended Posts

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

  • 2 weeks later...

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

  • 1 month later...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.