What is possibly wrong with following script that caused it to scream ?
<!DOCTYPE html>
<html>
<head>
<script>
function formSubmit()
{
document.getElementById("form1").submit();
}
</script>
</head>
<body>
<form id="form1" action="test.php" method="POST">
Name: <input type="text" name="name" ><br/>
<input type="button" onclick="formSubmit()" value="Submit" />
</form>
<?php
$name1=$_POST['name'];
echo "<br> Your name is $name1 . Thanks for using our system.";
?>
</body>
</html>
Following is error snap:
Thank You.