Hi!
Can anyone tell me why this loginscript works in firefox and not in IE?
when i try to log in with IE im just sent back to the same loginpage again... :queasy:
require "dblogon.php";
require "options.php";
if ($submit)
{
$loggedin = "false";
$result = mysql_query("SELECT * FROM ".$PA["table"]." WHERE nick='$nick' AND password='$pw'",$db);
$myrow = mysql_fetch_array($result);
if ($myrow['closed']==1) { require "header.php"; die("Brukerkonto er slettet."); }
if (mysql_num_rows($result)>=1){
$Userid = $myrow["id"];
Logging("login","$nick");
setcookie("Username",$nick);
setcookie("Password",$pw);
setcookie("Userid",$myrow["id"]);
setcookie("Access",$myrow["access"]);
$loggedin = "true";
}
else setcookie("Username","");
if ($loggedin=="true") Header("Location: index2.php");
else Header("Location: index.php?msgred=Wrong+login+or+password!");
die;
}
if (!$submit) {
?>
<body bgcolor="#000000">
<table width="600"><tr><td><br>
<table align="center"><tr><td><img src="../grafikk/logginn.gif"></td></tr></table>
<table width="279" align="center" cellpadding="7" cellspacing="0" height="145" background="../grafikk/loginbg.jpg">
<form method="post" action="<?php echo $PHP_SELF?>">
<td></td><td><font face="Arial" size="1" color=#FFFFFF><img src="../grafikk/brukernavn.gif"><br><table width="154" height="20" cellpadding="1" cellspacing="1" style="background-image: url(../grafikk/inputbg.gif); background-repeat: no-repeat"><tr><td><center><input type="Text" name="nick" style="border: 0px; background-color: #000000; width: 148px; height:16px; font-size: 10px; font-family: verdana; font-weight: bold; color: #FFFFFF;"></center></td></tr></table>
<font face="Arial" size="1" color="#FFFFFF"><img src="../grafikk/passord.gif"><br><table width="154" height="20" cellpadding="1" cellspacing="1" style="background-image: url(../grafikk/inputbg.gif); background-repeat: no-repeat"><tr><td><center><input type="Password" name="pw"style="border: 0px; background-color: #000000; width: 148px; height:16px; font-size: 10px; font-family: verdana; font-weight: bold; color: #FFFFFF;"></center></td></tr></table>
<br><input type="Submit" name="submit" value="Logg inn" style="background-color: #000000; color: #FFFFFF; border: 1px solid #FFFFFF; font-size: 10px; font-family: verdana; font-weight: bold;"></td></tr></table>
</form>
</table>
<table width=600><tr><td>
<table align=center><tr><td>
<a href="sendpass.php"><img border="0" src="../grafikk/glemtpo.gif"></a><br>
<a href="registrer.php"><img border="0" src="../grafikk/blimed.gif"></a>
</td></tr></table>
</td></tr></table>
</td></tr></table>
<?
}
require "footer.php";
?>
Thanks!