Jump to content

Java menus in php?


Brenty

Recommended Posts

Hello & HELP!,

I'm struggling with some code - I need to set a condition in php, and if this condition is true, then I need to run a java script, which is for a Java menu.

This is the condition...

[code]<?php if(permission("products","read")==TRUE)[/code]

And this is the Java script as I would have called it through HTML...

<script src="menu.js"></script><script menumaker src="menu_.js"></script>

So how on earth do I combine the 2 together?

Please someone help, I'm really trying hard to learn php, and every now and then I hit a wall, like now.
Link to comment
Share on other sites

[!--quoteo(post=354350:date=Mar 12 2006, 11:31 PM:name=Brenty)--][div class=\'quotetop\']QUOTE(Brenty @ Mar 12 2006, 11:31 PM) [snapback]354350[/snapback][/div][div class=\'quotemain\'][!--quotec--]
YAHOOOO! It worked!!!!!!!

You guys are life savers! And I've learned just that buit more! Sometimes you're just so near, but so far!

Many many thanks!
[/quote]

Any time.. don't hesitate to ask any more Q's!! [=
Link to comment
Share on other sites

Well, if someone could take a look at this, it would really get me out of a hole: [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=88051\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=88051[/a]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.