Jump to content

drop down box actions


jcompton32

Recommended Posts

Hope I can explain this well...  ;)
I need to develop a drop down box that changes the page as you proceed.

Example:  Drop down box #1 has car manufacturers (ie. Honda, Ford, BMW, etc.)
              Drop down box #2 has models
If you select no preference in box #1 all models should be viewed.
If you select Honda in box #1 -- drop down box #2 should show only (civic, accord, element, etc.)
If you select Ford in box #1 -- drop down box #2 should show only (escape, explore, GT, etc.)

[size=15pt]EXAMPLE:  -- Done in KELLYBLUE BOOK  [font=Verdana]http://www.kbb.com/kbb/UsedCars/default.aspx[/font][/size]<br>Note it ends in *.aspx.... can this be done in PHP to connect to my mysql database????
Link to comment
https://forums.phpfreaks.com/topic/34884-drop-down-box-actions/
Share on other sites

Let's break down the tasks :

Javascript is going to do the listening for changes in the dropdown.
If you preload all the possibilities, js could replace your dropdown too,
but if you want to fetch it dynamically all the time, you'll want to make an ajax request
to something like buildNewDropdown.php?conditions=2
Link to comment
https://forums.phpfreaks.com/topic/34884-drop-down-box-actions/#findComment-165885
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.