error

Discussion in 'Troubleshooting' started by dunny, Feb 9, 2004.

  1. dunny

    dunny Guest

    [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
    }
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    which aMember Pro version are you using?
    put
    {literal}
    ...
    {/literal}

    around your javascript.

Share This Page