i'm writing a free-for-all style link management system for my website. What i'm working on right now is adding links to the system. I can already add Catagories and subCatagories. On the add a link page I have 2 dropdown boxes. One of them displays main catagories, the other displays subcatagories. What I want to do is either
1: only display subcatagories that go with the main catagory selected in the main catagory dropdown box ( kinda like on the ATI Driver download site...but that's Javascript as well and i don't know if it's dynamic. )
or
2: Do away with the main dropdown box and use an SQL query to determine which subCats go with which main cat. and display is something like
MainCat - subCat
Bit Torrent - Trackers
Bit Torrent - Clients
the only problem is that I need to pass along several variables about which catagory you've selected and as far as I know / can remember you can only have one value="whatever" tags inside of a <option> tag. Am i wrong or how should i go about doing this?
If anyone wants to see code / db structure just leme know and i'll show it to ya...
http://www.napjunk.net/links/links.php