MYSQL to populate Menu + Onclick pass item name to PHP

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ibexcentral
Beginner
Beginner
Posts: 1
Joined: Thu Dec 18, 2008 1:31 pm

MYSQL to populate Menu + Onclick pass item name to PHP

Post by ibexcentral »

Hi,

Two questions:

1. Is it possible to populate a menu including many levels from MYSQL if so has anyone an example of the code.

2. Is it possible, onclick, to pass the menu item name via a variable, to a php page for example:

USer clicks on a menu item called 'Videos' some code needs to pass 'Videos' via a variable called $menuitem to demopage.php as follows:

demopage.php?selection=$menuitem

If this is possible is there an example?

Would really apprecaite a reply....

Cheers
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: MYSQL to populate Menu + Onclick pass item name to PHP

Post by Andy »

Hi,

Please see the menu download inside the extras folder there is a MySQL menu sample.

The only way to get the menu to direct to demopage.php?selection=Videos is to actually tell the menu when you build it. There is a PHP based menu that you can use for this also inside the extras folder in the menu download
Post Reply