syntax error whist trying to autosubmit form via javascript
Posted: Sun Mar 30, 2008 8:33 pm
I'm finding it difficult to add any new code in javascript or php to a large php prewritten application I'm trying to tweak I think I can work out how to tweak so I get to autosubmit a form but keep getting error messages when parsing code so can't get too much further yet. With the following code I've tried adding a line but get error- unexpected '=' I also notice a lot of slashes are being used at this part of the program Please might anyone be able to point out why I could be getting Unexpected 'item' messages so much when my code looks good or even copied from within the same program for example
Code: Select all
>body .="<br /><input type=\"submit\" name=\"z\" ";
//$this->body .=
"onclick=\"return checksubmit(this)\"";
// added here//
onload=\"javascript:document.forms("z").submit()\";
/ added end//