Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:49

Embed PHP Code to the Link


Poster: elly __at__ unidux.com.sg
Dated: Thursday November 9 2006 - 9:51:34 GMT

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://www.milonic.com/menuimages/18_about.gif;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


Poster: elly __at__ unidux.com.sg
Dated: Monday November 13 2006 - 2:29:27 GMT

solved!
Change the extension of the file name only! Sorry for lame posting


Poster: kevin3442
Dated: Monday November 13 2006 - 23:27:21 GMT

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


Poster: forjaes
Dated: Monday June 4 2007 - 15:00:11 BST

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


Hi, i'm having the same problem...

I try that, with and without [include (menu_data.php);]

Help please.
Thx.