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

Can I include a dynamic variable in the URL?

Poster: ukmojo
Dated: Tuesday January 6 2004 - 18:21:56 GMT

I want to pass a variable into the URL string. I'm using PHP.

This will give an idea of what I need:
aI("text=Made to order;url=displaysense_fr_outer.php?mcatid=bespoke&ref=<?php echo $mref;?>;status=Displays made to order;");

I know this won't work but it illustrates the URL I need to construct i.e. to include the $mref variable in the URL.

Can this be achieved somehow?

Any help will be greatly appreciated.

Poster: Hergio
Dated: Saturday January 10 2004 - 5:57:45 GMT

That SHOULD work in a page actually. If your server supports PHP and you are in a .php page, the server will first parse through the file and put into those variables whatever you want and then send it down to the client. Once its at the client, it will appear like perfectly formed syntax (as long as the variable you echo'd into that spot doesnt contain any stray quotation marks and the like). But overall thats the way you would create dynamic links in the menu code using server side scripting.