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