Hello,
After looking throught the examples I still remain with one simple question.
Is it possible to do some like this with the menu? :
menu_data.js --->
with(milonic=new menuname("Sample")){
margin=3;
style=vertStyle;
top="offset=2";
aI("image=18_about.gif;text=About Us;url=/aboutus.php;");
aI("image=profile.gif;text=My Profile;url=/profile.php?x=SOME_USER_NAME$;");
}
SOME_USER_NAME$ is a variable that contains the users name.
I have the page profile.php but only can use it for a specific user (which is logged in ofcourse)
The menu should then show the profile.php for that particular user.
Thanks in advance for your time replying.
Games Crew
PHP and Milonic
If I am corrent, just put:
Code: Select all
menu_data.js --->
with(milonic=new menuname("Sample")){
margin=3;
style=vertStyle;
top="offset=2";
aI("image=18_about.gif;text=About Us;url=/aboutus.php;");
aI("image=profile.gif;text=My Profile;url=/profile.php?x=<?php echo $SOME_USER_NAME; ?>;");
}
PHP and milonic
In the end it proofed indeed much more simple to combine PHP and milonic than i thought
menu_data.js --->
aI("text=Some Text;url=/profile.php?x=<?php echo $SOME_USER_NAME; ?>;");
}
To get for example the line profile.php?x=John
After renaming the data.js to data.php everything worked like a charm.
Life is fun with a bit of knowledge.
Thanks Milonic!
menu_data.js --->
aI("text=Some Text;url=/profile.php?x=<?php echo $SOME_USER_NAME; ?>;");
}
To get for example the line profile.php?x=John
After renaming the data.js to data.php everything worked like a charm.
Life is fun with a bit of knowledge.
Thanks Milonic!
Re: PHP and milonic
I am trying to do something similar.
I seem to be having a context problem with my PHP variables between the web page and the menu files. If the variable is set in the web page, it is not available to the menu files and vice versa.
Do I have to do something special to make the variables available in both contexts? Since the variable values are coming from mySQL, I guess I can just read them in both places if needed.
I seem to be having a context problem with my PHP variables between the web page and the menu files. If the variable is set in the web page, it is not available to the menu files and vice versa.
Do I have to do something special to make the variables available in both contexts? Since the variable values are coming from mySQL, I guess I can just read them in both places if needed.