Hello, can somebody tell me why I get a parse error in this file?
The error message is on line 20 according to the error log, the last line.
<?php // errormsg.php
function error($msg) {
?>
<html>
<head>
<script language="JavaScript">
<!--
alert("<?=$msg?>");
history.back();
//-->
</script>
</head>
<body>
</body>
</html>
<?
exit;
}
?>
Could it be something to do with the Javascript?
thanks