My Perl/CGI program is producing an error, for no apparent reason (although there must be an obscure one!)
The following piece of code is the problem, as the page prints out "Alright NOW1", then the error appears, and then shows "Alright NOW2" along with the rest of my html (which is fine). But anything on the page that uses the piece of JavaScript below fails. Also, I put an alert in the JavaScript, but this doesn't come up at all.
printf "<html>";
printf "<head><title> table </title>";
printf "Alright NOW1!!!";
printf "<SCRIPT LANGUAGE='JavaScript'>;";
printf "alert('It is now in the JavaScript');";
printf "var temp = 'inbox';";
printf "var temp2 = 'box2';";
printf "var temp3 = 'trash';";
printf "function goto(to)";
printf "{ document.mailform.box.value = to; document.mailform.submit(); }";
printf "function delete()";
printf "{ document.mailform.delmove.value = 'del'; document.mailform.submit(); }";
printf "</script>";
printf "</head>";
printf "Alright NOW2!!!";
printf "<body>";
The error porduced is below:
A runtime error has occured.
Do you wish to debug?
Line: 0
Error: Expected '('
Any ideas??? Desperately need some help......