Jump to content

Recommended Posts

I have 4 combo boxes on my page, the first one populates straight from the table in the database, I would like the second one to populate depending on the first combo boxes selection and the thid combo box to populate depending on the second combo box selection and the fourth combo box to populate according to the selection made in the third combo box. 

 

Could someone please point me in the correct direction as I have been searching and found nothing I could use.

 

Thank you.

Link to comment
https://forums.phpfreaks.com/topic/223501-onchange/
Share on other sites

I used to do this using javascript though it was static data not from a database.

 

http://stackoverflow.com/questions/1777994/select-country-first-from-a-dropdown-menu-then-region-and-then-city

 

The accepted answer there seems to be a good way to start, uses AJAX though.

Link to comment
https://forums.phpfreaks.com/topic/223501-onchange/#findComment-1155299
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.