Jump to content

PHP Combobox


fekade

Recommended Posts

Hello,

 

 I have created two tables "category" and "subcategory". So what i need to do is that i have organized two combobox and one will retrieve values from category table and populate the data. However, i need to fill the other combobox when one selected from the category combobox and populate all the values from subcategory table. 

 

I really thank you all for helping me out. 

 

Looking for great answer. 

 

Thank you in advance.

Fekade

Link to comment
https://forums.phpfreaks.com/topic/295507-php-combobox/
Share on other sites

Do you want the second combobox to be populated as soon as something is selected in the first combobox? If so, you'll need to utilize a client-side language like JavaScript. Perhaps you can find something useful here:

https://www.google.com/search?q=javascript%20populate%20dropdown%20based%20on%20another%20dropdown&rct=j

Link to comment
https://forums.phpfreaks.com/topic/295507-php-combobox/#findComment-1508913
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.