[10-Feb-2004 01:32:07] PHP Fatal error: Smarty: [in signup1.php line 432]: syntax error: invalid attribute name - '(m' in /home/******/public_html/smarty/Smarty_Compiler.class.php on line 1387 i get this error when i try to add a javascript code to my signup code in the templates folder here is the code it dosent like. function register(x){ for (m=temp.options.length-1;m>0;m--) temp.options[m]=null for (i=0;i<group[x].length;i++){ temp.options=new Option(group[x].text,group[x].value) } temp.options[0].selected=true }