This topic is locked

Dependant dropdown dependant on a dependant dropdown!

3/14/2010 8:49:21 AM
PHPRunner General questions
C
chinwag author

Hi
I havent been able to figure out a way of creating a dependant dropdown that is dependant on another dependant dropdown...........
Consider this example with a series of car sales garages:
One car sales garage at Lisbon and one at Paris......
Lisbon sells BMW and VW whereas Paris sells Mercedes and Opel
I have the dependant dropdowns working where if the user selects Lisbon >> BMW or VW is shown and if they select Paris >> Mercedes or Opel is shown

But I can't then get the next field to show only BMW or VW or Mercedes or Opel depending on what is selected above.
e.g. if Lisbon is selected I want BMW or VW to then be selected and if BMW is then selected I want the options 3-series, 5-series, 6-series etc to show. At the moment all models including VW/Mercedes/Opel all show on that second dropdown.
Hope that makes sense. Please help!

Sergey Kornilov admin 3/14/2010

Each pair of dependent dropdowns are setup the same way. Make sure that you have a table that stores Models and references to Makes. Hard to tell what exactly might be wrong without seeing data structure and setup.