Hi there
I have another javascript and php problems where i have an array from php and then outputed hopefully to a drop down menu. The following code is the code that i am using for it. I havem't got the script tags in there as they are already above and below the code. I am having trouble calling the array to display it. This is in the line
echo "fw_menu_1.addMenuItem("$module_name_array[z]'); ";
If i place the number, either 0,1,2,3 etc in the place of 'z' it works fine. I have tried different ways of typing it like 'z', "z", \"z\". I think the trouble is somewhere in the php and javascript mixing with each other......anyone have a solution???
echo "for(var z = 0; z < $count; z++) { ";
echo "fw_menu_1.addMenuItem('$module_name_array[z]'); ";
echo " } ";
echo "fw_menu_1.addMenuItem('-------------------------'); ";
echo "fw_menu_1.addMenuItem('Register a Team'); ";
echo "fw_menu_1.bgImageUp='images_jpg_main_site/fwmenu2_106x16_up.gif'; ";
echo "fw_menu_1.bgImageOver='images_jpg_main_site/fwmenu2_106x16_over.gif'; ";
echo "fw_menu_1.hideOnMouseOut=true; ";