PHP tree menu

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
Sanglier
Forum Newbie
Posts: 7
Joined: Mon Jul 19, 2004 8:56 am

PHP tree menu

Post by Sanglier »

Hi,

Are there any turorials that deals with PHP tree menues?
What would be the best way to keep track of the menu state, a hidden variable or a sessions?
Anybody that can recommend a PHP tree menu to start of with?
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Post by liljester »

you could also use a cookie to remember menu states also =)

are you wanting a permissions based menu? or just a generic everyone sees everything menu?
Sanglier
Forum Newbie
Posts: 7
Joined: Mon Jul 19, 2004 8:56 am

Post by Sanglier »

liljester wrote:you could also use a cookie to remember menu states also =)

are you wanting a permissions based menu? or just a generic everyone sees everything menu?
If you mean password protected: No, just a simple tree menu. The purpose is to allow visitors to easely gain an overview of the site.
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Post by liljester »

you can build a tree menu with DHTML or JS, the only reason you would us php is if there was a need to change permissions or something. this is prolly more of a "Client Side" question, as it would be a DHTML or Javascript menu.
Sanglier
Forum Newbie
Posts: 7
Joined: Mon Jul 19, 2004 8:56 am

Post by Sanglier »

The reason for using a server side menu is that some users switch of JavaScript for security reasons and some don't even realise that it is switch off. The drawback of cause is the extra delay, so it is less plesant to use.
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Post by liljester »

are there any valid security risks in javascript? and how many users turn off js?
Post Reply