ok, i'm not sure if this should have went in the cs-s forum, but it involves php, so i put it here.
i'm getting an "Unterminated String Constant" error on line 4 of my error script.
heres the whole script:and here's the html code. the error is coming up on line 4:PHP Code:<?php
function error($msg)
{
?>
<html>
<head>
<script language="JavaScript1.1">
<!--
alert("<?php echo $msg; ?>");
history.back();
// End -->
</script>
</head>
<body>
</body>
</html>
<?
exit;
}
?>I've checked the JS against another example i got in the forums search which involved disallowing right clicking. looked fine. anyone know why that error is coming up?Code:<html> <head> <script language="JavaScript1.1"> <!-- alert("One or more required fields was left blank. Please fill them in and try again."); history.back(); // End --> </script> </head> <body> </body> </html>






Bookmarks