I know this is not really secure programming but I cannot figure out why it works on the Safari browser but not on Firefox,
No matter what is input into the password box it always goes to the sxdispunprotect.php.
Any ideas/suggestions?
function Validate() {
if (document.form1.password.value == "fredpeabody")
{
window.location="<?php echo 'sxdisp.php'; ?>";
return(false);
} else {
window.location="<?php echo 'sxdispunprotect.php'; ?>";
return(false);
}
}
</script>
</head>
<body onLoad="self.focus();document.form1.password.focus()" >
<div id="main-content">
<p> Enter the Password to search and display all the information on the Sigma Database. </p>
<p> Otherwise only the unprotected information will be displayed.</p>
<form name="form1" method="post" onsubmit="return Validate()">
<table width="1000" border="0" cellspacing="1" cellpading="0">
<tr>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td align="right">Password: </td>
<td><input size="20" maxlength="20" name="password" value=" "> </td>
</tr>
</table>
</form>
</div>
</body>
</html>