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
MYSQL to populate Menu + Onclick pass item name to PHP
-
- Beginner
- Posts: 1
- Joined: Thu Dec 18, 2008 1:31 pm
Re: MYSQL to populate Menu + Onclick pass item name to PHP
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
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