currenly I am trying to make a dynamic tree menu, using javascript
php and mysql.
But I have a problem in accessing php variables inside javascript code.
e.g. (this code is OK but ?)
<script type="text/javascript">
<?=$menu_name?>.addItem('anything');
var <?=$menu_adi?> = null;
<?=$menu_adi?> = new MTMenu();
<?=$menu_adi?>.addItem("aaaa", "bbbb.html");
<?=$menu_name?>.makeLastSubmenu(<?=$menu_adi?>);
</script>
But I want to use a PHP variable for the string inside addItem function.
e.g. addItem(<?=$rrrrrr?>)
can it be done?
Thanx for all answers.