to create a loginscript for my homepage. It is working fine in all browsers except Internet Explorer.
My login.html looks like this:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="sha512.js"></script>
<script type="text/javascript" src="forms.js"></script>
<title>Login</title>
<link rel="stylesheet" type="text/css" href="../aaa.css">
<style type="text/css">
</style>
</head>
<?php
if(isset($_GET['error'])) {
echo 'Error Logging In!';
}
?>
<form action="process_login.php" method="post" name="login_form">
<input type="text" name="email" />
<input type="password" name="p" id="password"/>
<input type="button" value="Login" onclick="formhash(this.form, this.form.password);" />
</form>
I can't figure out why IE8 behaves like this
ps. I strongly suspect its the // onclick="formhash(this.form, this.form.password) // part that causes the problem but I dunno how to rewrite it so it also works with IE.