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
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

Edited by cyberRobot
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.