Skip to main content
June 26, 2007
質問

Dynamic sub menu categories

  • June 26, 2007
  • 返信数 2.
  • 385 ビュー
Hi folks,

Hopefully someone can help out a "lesser mortal" with basic skills here!

I am developing an 'add record' form to update a database (PHP/MYSQL) and would like to be able to set the items in a dropdown sub menu based on a choice from the previous menu.
e.g. first category is chosen from a drop down containing 'Sparkling Wines, White Wines, Red Wines' etc
second category contains sub categories for the above, e.g. 'Champagne, Sparkling Reds, Chardonnay, Riesling, Merlot, Shiraz' etc.
Is there a way to populate the dropdown for the second category so that it only shows the related options (e.g. Merlot and Shiraz if Red Wines is selected) rather than the entire list?

Any help or suggestions would be greatly appreciated!

Thanks in advance,
Graham
このトピックへの返信は締め切られました。

返信数 2

Günter_Schenk
Inspiring
June 27, 2007
This is usually called "dependant dropdown menus", and IMHO all "lesser mortals" out there (including me ;-) should rather use a Dreamweaver extension like Tecnorama´s Dynamic Dependant Dropdown Menus -- programming that stuff would be a tough thing
June 27, 2007
Thanks Günter,
Will check it out - appreciate the help.
Graham