Hei,
I'm developing a system.And theres an user account system in it and users can login to their accounts.Everything works just fine in IE and in Opera browsers.Everything is alright with Firefox aswell BUT in the login page it just messes up.Even if the user gives the correct username and password the logic forwards to the error page that I made to be forwarded to when the username and password doesnt match.
But things are alright in IE and in Opera browsers.Just when Im testing it with firefox then I faced this strange problem.
Here's the code to the login script,
<?php
$connection = mysqli_connect("localhost","root","");
mysqli_select_db($connection,"uvdb");
$query = "SELECT pwd FROM db WHERE uname='$_POST[username]'";
$result = mysqli_query($connection,$query);
$array = mysqli_fetch_array($result);
if($_POST[pwd] == $array[pwd])
{
echo '<html>';
echo '<head>';
echo '<meta http-equiv="refresh" content="0 ; url=s_login.html"/>';
echo '</head>';
echo '</html>';
}
else
echo '<html>';
echo '<head>';
echo '<meta http-equiv="refresh" content="0 ; url=err_login.html"/>';
echo '</head>';
echo '</html>';
?>
Hope you guys can help me.
Peace.