masterjake
New Member
- Messages
- 73
- Reaction score
- 0
- Points
- 0
Ok I'm having probably the wierdest, rarest, and gayest problem there is in php login. So basically, you can login on "ANY" browser other than Internet Explorer. I don't know why this is. So I need someone to help me out. My site is http://masterjake.co.nr/ if you need proof or just need to test it out. When the user logs in, it runs this code called do_login.php. Heres the do_login code:
<?php session_start(); ?>
<?php
$username = $_POST['username'];
$password = $_POST['password'];
$login=$_GET['login'];
if ($login==yes) {
include ("./tools/connection.php");
$get = mysql_query("Select count(id) FROM users WHERE username='$username' AND password='$password'");
$result = mysql_result($get,0);
if ($result != 1) {
header ("Location: login_failed.php");
}else {
$_SESSION['username'] = $username;
header ("Location: login_success.php");
}
}
?>
So thats the code. Remember you can login on any browser except IE. I also add <?php session_start(); ?> to the beginning of all my pages. So if anyone can resolve this issue, that would be wonderful. Thanks!
<?php session_start(); ?>
<?php
$username = $_POST['username'];
$password = $_POST['password'];
$login=$_GET['login'];
if ($login==yes) {
include ("./tools/connection.php");
$get = mysql_query("Select count(id) FROM users WHERE username='$username' AND password='$password'");
$result = mysql_result($get,0);
if ($result != 1) {
header ("Location: login_failed.php");
}else {
$_SESSION['username'] = $username;
header ("Location: login_success.php");
}
}
?>
So thats the code. Remember you can login on any browser except IE. I also add <?php session_start(); ?> to the beginning of all my pages. So if anyone can resolve this issue, that would be wonderful. Thanks!