+ Reply to Thread
Results 1 to 2 of 2

Thread: Login Script Issues (IE)

  1. #1
    masterjake is offline x10Hosting Member masterjake is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    73

    Exclamation Login Script Issues (IE)

    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!

  2. #2
    Micro is offline Retired staff (11-12-2008) Micro is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    West Midlands
    Posts
    1,301

    Re: Login Script Issues (IE)

    <?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");
    }
    }
    ?>
    Try using "yes" instead of just yes.
    Micro

+ Reply to Thread

Similar Threads

  1. Replies: 8
    Last Post: 12-03-2007, 04:12 PM
  2. Mine Died. Anyone have a login script?
    By salukigirl in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 10-19-2007, 03:18 PM
  3. Secure login script question
    By cetutnx1 in forum Free Hosting
    Replies: 0
    Last Post: 05-01-2006, 05:40 PM
  4. Cant login to my news script
    By SecureStealth in forum Free Hosting
    Replies: 0
    Last Post: 09-08-2005, 05:47 PM
  5. PHP login script
    By xunhandmex in forum Scripts & 3rd Party Apps
    Replies: 8
    Last Post: 05-26-2005, 07:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers