I want to make a form that has checkboxes of Categories and Sub Categories organized in a collapsable hierarchy tree where the clicked results can be inserted into a database. Is something like this possible to do with just PHP and MySQL? If so, can someone please point me in the direction of what I would need to learn to do this? I know how to make one that is all open, but since I'm going to have hundreds of Sub Categories, I really need to find a way to make this into a collapsable hierarchy tree. Any help would be greatly appreciated, thanks.
Below is an example of what I'd want the checkbox form to look like with all the fields exposed..
Category1
>>>SubCategory1.1
>>>>>>SubCategory1.2
Category2
>>>SubCategory1.1
But I want it closed until a main Category is clicked, so it would first look like this..
Category1
Category2
This site has something similar to what I want to achieve for another example...
http://dhtmlx.com/docs/products/dhtmlxT ... boxes.html
Collapsable Checkbox Hierarchy Tree
Moderator: General Moderators