this one is more clear coding
thanks 4 all.
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
if ( $_POST['Confirm'] == 'Confirm' ) {
echo'
<script language="JavaScript">
alert(" '.$Confirm.' Was Incorrect, Please Try Again ! ");
</script>
'; }
?>
<form action="<? echo $PHP_SELF ?>" method="post" name="form1" onsubmit ="return mainvalidate(this.form)">
<input name="key" type="password" >
<input name="Confirm" type="submit" id="Confirm" value="Confirm" >
</body>
</html>
when mouse click, it will alert but enter key cannot.
i want to ask that mostly which part of code will cause that kind of error.