If someone can shed some light on this or point me in the right direction, i would be very grateful. Here is my dilema:
i have two tables:
MAIN CATEGORY
Category id, name
1, glass
2, stone
3, iron
SUB CATEGORY
SubCategoryid, name, categoryid
1, vase, 1
2, vase, 2
3, candleholder,2
4,candleholder,1
What i want in my form is two drop down lists, i can populate the first one with the Main Category Names, so when the user selects say Glass, then the second drop down list will be populated with all of the sub categories for glass (in this case: vase, candleholder).
This should all take place before the user clicks the submit button. I've seen some java scripts that can do this but you have to hardcode the selections and i need to get them from a table where i don't know what they are. Is there anything in PHP that can handle this.
Thanks for any help