hi everyone i was hoping someone could give me a quick hand. i created a sidebox to put a subscribe form for my mailing list in.
when adding the code for the subscribe form i get this error
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/cara1977/public_html/includes/templates/template_default/sideboxes/tpl_mailinglist_sidebox.php on line 41
this is the code in the tpl_mailinglist_sidebox.php
Code:<!-- EDIT BELOW THIS LINE --> <table align="center"> <!-- newsletter subscribe below here --> <script language="Javascript" type="text/javascript"> var fieldstocheck = new Array(); fieldnames = new Array(); function checkform() { for (i=0;i<fieldstocheck.length;i++) { if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") { alert("Please enter your "+fieldnames[i]); eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()"); return false; } } return true; } function addFieldToCheck(value,name) { fieldstocheck[fieldstocheck.length] = value; fieldnames[fieldnames.length] = name; } </script> <form method="post" action="http://www.enchantedlingerie.com/newsletter/?p=subscribe&id=1" name="subscribeform"> <input type="hidden" name="list[1]" value=signup> Email:<input type="text" name="email" value = ""><br> <script language="Javascript" type="text/javascript">addFieldToCheck("email","Email Address");</script> Name: <input type="text" name="Name" value = ""> <script language="Javascript" type="text/javascript">addFieldToCheck("Name","Name");</script> <input type="hidden" name="list[1]" value="signup" /> <input type="submit" name="subscribe" value="Subscribe" onClick="return checkform();"> </form> <!-- newsletter subscribe ends here --> </table> <!-- EDIT ABOVE THIS LINE -->
im not sure what the error means or how i should fix it. if anyone can give me a hand it would be so appreciated.
thanks so much
Cara



