Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4041856
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:55:58+00:00 2026-05-20T12:55:58+00:00

I’ve just uncovered a rather annoying IE8 problem affecting a login page I’m working

  • 0

I’ve just uncovered a rather annoying IE8 problem affecting a login page I’m working with. The login form is working correctly in FF (3.6 – MAC & PC), Chrome, Safari but does the equivalent of a refresh when you submit the UN/PW in IE8. No error, just a blank form looking me in the face.

PHP code on the login page:

<?php
define('INCLUDE_CHECK',true);
include 'includes/connect.php';

session_name('tzLogin');
session_set_cookie_params(2*7*24*60*60);
session_start();

if($_SESSION['id'] && !isset($_COOKIE['tzRemember']) && !$_SESSION['rememberMe'])
{
    $_SESSION = array();
    session_destroy();
}

if(isset($_GET['logoff']))
{
    $_SESSION = array();
    session_destroy();

    header("Location: login.php");
    exit;
}

if($_POST['submit']=='Login')
{   
    $err = array();

    if(!$_POST['username'] || !$_POST['password'])
        $err[] = 'Sorry, all the fields must be completed.';

    if(!count($err))
    {
        $_POST['username'] = mysql_real_escape_string($_POST['username']);
        $_POST['password'] = mysql_real_escape_string($_POST['password']);
        $_POST['rememberMe'] = (int)$_POST['rememberMe'];

        $row = mysql_fetch_assoc(mysql_query("SELECT id,usr,permission,fullName FROM adidas_members WHERE usr='{$_POST['username']}' AND pass='".md5($_POST['password'])."'"));

        if($row['usr'])
        {

            $_SESSION['usr']=$row['usr'];
            $_SESSION['id'] = $row['id'];
            $_SESSION['fullName'] = $row['fullName'];
            $_SESSION['permission'] = $row['permission'];
            $_SESSION['rememberMe'] = $_POST['rememberMe'];

            setcookie('tzRemember',$_POST['rememberMe']);
        }
        else $err[]='Opps, wrong username and/or password.';
    }

    if($err)
    $_SESSION['msg']['login-err'] = implode('<br />',$err);

    header("Location: dashboard.php");
    exit;
}
else {
}

$script = '';

?>

Login related code on the ‘dashboard’ (landing) page:

<?php
session_name('tzLogin');
session_set_cookie_params(2*7*24*60*60);
session_start();

error_reporting(E_ALL^E_NOTICE);
define('INCLUDE_CHECK',true);
include 'includes/connect.php';

if(isset($_GET['logoff']))
{
    $_SESSION = array();
    session_destroy();
    header("Location: login.php");
    exit;
}
?>

Finally, the form code:

<form action="" method="post" class="contactForm" id="loginForm">
                <?php
                    if($_SESSION['msg']['login-err'])
                    {
                        echo '<div class="error">'.$_SESSION['msg']['login-err'].'</div>';
                        unset($_SESSION['msg']['login-err']);
                    }
                ?>
                <table class="loginTable" cellspacing="0">
                  <tr>
                    <th width="50"><label for="username">Username:</label></th>
                    <td><input type="text" name="username" id="username" class="validate[required] textBox" /></td>
                  </tr>
                  <tr>
                    <th><label for="password">Password:</label></th>
                    <td><input type="password" name="password" id="password" class="validate[required] textBox" /></td>
                  </tr>
                  <tr>
                    <th></th>
                    <td style="padding-top:5px;"><input type="image" src="images/button_login.gif" alt="Login" name="submit" value="Login" /><span class="remember"><input name="rememberMe" id="rememberMe" type="checkbox" checked="checked" value="1" />Remember me</span></td>
                  </tr>
                </table>
            </form>

The only thing I can think of/find is that IE8 doesn’t handle cookies very well. That said, I checked to see what cookies are being set and I’m told that tzLogin is (with an expiry date which is ages away).

Note: My login page is based off this > http://tutorialzine.com/2009/10/cool-login-system-php-jquery/

Hoping someone can help with this frustration!

rrfive

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T12:55:58+00:00Added an answer on May 20, 2026 at 12:55 pm

    IE is not passing submit=Login only passing the coordinates for your image button (submit.x and submit.y values).

    Store a hidden input instead:

    <input type="hidden" name="submitaction" value="Login" />
    

    And in your PHP code:

    if($_POST['submitaction']=='Login')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a JSP page retrieving data and when single or double quotes are
I've got a string that has curly quotes in it. I'd like to replace
I want use html5's new tag to play a wav file (currently only supported
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm looking for suggestions for debugging... If you view this site in Firefox or
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.