I have two select dropdowns which autopopulate from taxonomy categories and subcategories. I need the user to be redirected once they choose from the dropdowns and submit to the relevant URLs for that category or subcategory.
For example my first category is music then have the subcats rock pop and soul
if the user picks music in the first dropdown the second dropdown says all music > rock > pop > soul
I need it that if they pick music and all music then press the submit button they are directed to www.mydomain.com/sections/music/ and if they pick music and rock they are directed to www.mydomain.com/sections/music/rock/
this continues for each section (ie all movies > horror > action > comedy etc goes to www.mydomain.com/sections/movies and www.mydomain.com/sections/movies/horror and so on..)
I am using code from here to show the categories and sub-categories - http://wordpress.aspcode.net/view/63538464303732726638577/how-can-i-display-parent-and-child-taxonomies-in-separate-drop-downs
Thank you.