Collapsable Checkbox Hierarchy Tree

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cozza
Forum Newbie
Posts: 1
Joined: Sun Apr 27, 2008 4:33 pm

Collapsable Checkbox Hierarchy Tree

Post by cozza »

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
Post Reply