I would like to make a form that will allow people to choose what categories to view using drop down menus.

Basically, I want a base url of "taxonomy/term/"

Then I want 2 or more pull down menus that will add to the base url.

example:

[pulldown menu] (options 1,2,3,4,5)
[pulldown menu] {options 6,7,8,9,10)

If someone chooses term 2 from the first menu and 9 from the second menu, I want the form to create a link like:

"taxonomy/term/2,9"

Then the visitor can hit a button like "submit" and it would take them to the url: "taxonomy/term/2,9"

If I have to manually input the code for each menu, that is fine. It would be better if the pulldown menu will show all the terms that are in a particular vocabulary that is specified.

If someone can help with this or point me in the right direction, I would greatly appreciate it. If I need to describe anything in more detail, let me know.

Comments

hadishon’s picture

I think a dhtml form menu might work to build custom links. I just haven't figured out how to include 2 varibles in the url. I can't post the code here because it says it looks suspicious.

I'd rather have a php snippet that can pull all the terms/links of a vocabulary. But, this is even further from my coding abilities.

2 of my Drupal sites:
Small Farm Resource Center
Israel Travel Center

colorado’s picture