Try this URL:
http://phplib.michaelchaney.com/spruce_tree/tree_demo.php
See if this is helpful and serves your purpose. You should click against the "+" for the menus to expand. You can always extend the class so that when you click on a "+", you update a session variable to store the selection made by clicking. Since every click has to go back to the server for processing by PHP, you can only do it this way.
Javascript is more 'real time' as all processing is done on the client side..so the user can select all he wants and then do a final submit for server processing.
I hope I am answering to the point!
--Kartic
PS: This will be rather nostalgic to Mainframers using a 3270 emulator :-)