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
[INDENT]SubCategory1.1[/INDENT]
[INDENT]SubCategory1.2[/INDENT]
Category2
[INDENT]SubCategory2.1[/INDENT]
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/dhtmlxTree/samples/checkboxes/pro_mixed_checkboxes.html