I have downloaded sample of Plain Text Horizontal Style DHTML Menu Bar in .zip format
Now I got a problem to embed php variable to the link.
In menu_data.js file, I need to set the link, for example :
aI("image=http://milonic.com/menuimages/18_ab ... text=About Us;url=/aboutus.php?id='<?=session_id()?>';");
I should get the id value from the php session, but it is not working in above way. Anyone can show me how to embed it?
Thanks alot
Embed PHP Code to the Link
-
- Beginner
- Posts: 6
- Joined: Thu Nov 09, 2006 9:30 am
-
- Beginner
- Posts: 6
- Joined: Thu Nov 09, 2006 9:30 am
Hi, i'm having the same problem...kevin3442 wrote:For other folks reading... elly means rename menu_data.js to menu_data.php, so that the php code in the file will be processed when the file is served.
Glad you figured it out elly... nice work!
Cheers,
Kevin
I try that, with and without [include (menu_data.php);]
Help please.
Thx.