I am working on a page I did not create, trying to troubleshoot why the log-in form does not function in IE6/IE7. It’s a straightforward login which redirects to an index page when correct info is entered. In IE, the submit button just does not function, and I can’t see any reason why.
The page is here: http://www.asg-llc.com/employee/login.php
The code for login.php is:
<?
session_start();
if ($_POST["submit1"] != "") {
if (($_POST["username"]=="asg") && ($_POST["password"]=="Asg!1")) {
session_register("userAuthenticated");
$userAuthenticated = "1";
header("Location: index.php");
exit;
} else {
session_unset(); // Unset session variables.
session_destroy(); // End Session
$errorMsg = "Incorrect username/Password.";
}
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Academy Solutions Group, LLC</title>
<!--stylesheets -->
<link rel="stylesheet" type="text/css" media="screen" href="../css/nav_int.css" />
<link rel="stylesheet" href="../css/asg_styles_employees.css" type="text/css" />
<link rel="stylesheet" href="../css/fonts.css" type="text/css" />
<link rel="icon" href="../images/favicon.ico" type="image/ico" />
<script type="text/javascript" src="js/supersleight-min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="../css/asg_styles_employees-IE6.css" />
<![endif]-->
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="../css/IE6-dropdownhome.css" />
<![endif]-->
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="wrapper_content">
<div id="topbanner">
<div id="header_interior"><img src="../images/employee-banner.jpg" border="0" usemap="#Map" alt="ASG" /> <map name="Map" id="Map">
<area shape="rect" coords="333,14,567,173" href="../index.php" alt="ASG" /></map></div>
</div>
<div class="int_wrap_contact">
<div class="headerimg">
</div>
<div id="int_content">
<div id="nav">
<a href="login.php"><img src="../images/sidebar-welcome.png" width="230" height="26" border="0" alt="Welcome!" /></a>
<br />
<div style="padding-left:15px; padding-top: 10px; padding-right: 15px;">
<p>Welcome. This section is for employees only. Please sign in.</p></div>
<br /> <a href="login.php"><img src="../images/sidebar-new.png" width="230" height="26" border="0" alt="Welcome!" /></a><br />
<div style="padding-left:15px; padding-top: 10px; padding-right: 15px;">
We are now running on our new site!</div>
</div>
<div id="content">
<div id="columns_employees">
<br />
<br />
<br />
<div id="contents">
<table width="500" border="0" cellspacing="6" cellpadding="6">
<tr>
<td>
<form action="<?=$PHP_SELF?><?if($QUERY_STRING){ echo"?". $QUERY_STRING;}?>" method="post">
<p align="center">Employees only. Please login to access the Employee Dashboard.</p>
<table align="center" border="0">
</form></td>
</tr>
<tr>
<th> Username: </th>
<th> <input type="text" name="username" />
</th>
</tr>
<tr>
<th> Password: </th>
<th> <input type="password" name="password" />
</th>
</tr>
<tr>
<th colspan="2" align="right"> <input type="submit" name="submit1" value="Login">
<br /> <br /> <br /> <br />
<br />
<b>
<?=$errorMsg;?>
</b> </th>
</tr>
</table>
</th></body>
</html>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="clearfloat" /></div>
<!-- end #header -->
</div>
<!-- end #mainContent -->
<div class="green_link" id="footer"><?php include ("../includes/footer.php") ?>
<!-- end #footer --></div>
<!-- end #wrapper --></div>
</body>
</html>
Here’s the index page code that form should redirect to:
<?
session_start();
if ($_SESSION["userAuthenticated"] != "1") { header("Location: login.php"); exit; }
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Academy Solutions Group, LLC</title>
<!--stylesheets -->
<link rel="stylesheet" type="text/css" media="screen" href="../css/nav_int.css" />
<link rel="stylesheet" href="../css/asg_styles_employees.css" type="text/css" />
<link rel="stylesheet" href="../css/fonts.css" type="text/css" />
<link rel="icon" href="../images/favicon.ico" type="image/ico" />
<script type="text/javascript" src="js/supersleight-min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="wrapper_content">
<div id="topbanner">
<div id="header_interior"><img src="../images/employee-banner.jpg" border="0" usemap="#Map" alt="ASG" /> <map name="Map" id="Map">
<area shape="rect" coords="333,14,567,173" href="../index.php" alt="ASG" /></map></div>
</div>
<div class="int_wrap_contact">
<div class="headerimg">
</div>
<div id="int_content">
<div id="nav">
<a href="login.php"><img src="../images/sidebar-welcome.png" width="230" height="26" border="0" alt="Welcome!" /></a>
<br />
<div style="padding-left:15px; padding-top: 10px; padding-right: 15px;">
<p>Welcome your the ASG Employee Dashboard. Documents have been added for your usage. </p></div>
<br />
<a href="#.php"><img src="../images/sidebar-dashboard.png" alt="Useful Documents" width="230" height="26" border="0" /></a>
<ul>
<li class="list_blue"><a href="#links">Quick Links</a>
<ul class="sub_list_blue">
</ul>
</li>
<li class="list_blue"><a href="#tax">Tax Forms</a>
</li>
<li class="list_blue"><a href="#insurance">Insurance Documents</a>
</li>
<li class="list_blue"><a href="#benefits">Medical Benefits</a>
</li>
<li class="list_blue"><a href="#k401k">401K Documents</a>
</li>
<li class="list_blue"><a href="#employees">ASG Employee Documents</a>
</li>
</ul> <!--<br /> <a href="login.php"><img src="../images/sidebar-quicklinks.png" width="230" height="26" border="0" alt="Welcome!" /></a><br />
<div style="padding-left:15px; padding-top: 10px; padding-right: 15px;">
<a href="http://asg-online.ghg.com/login.jsp" target="_blank"><img src="../images/timecard.png" alt="Time Card" /></a> <a href="https://www.expertplan.com/primebenefits.js" target="_blank"><img src="../images/401k.png" alt="ASG 401K" /></a> <a href="https://mail.google.com/a/asg-llc.com" target="_blank"><img src="../images/asgemail.png" alt="Time Card" /></a><br /></div>-->
</div>
<div id="content">
<div id="columns_employeedash">
<br />
<br />
<br />
<div id="contents"><br />
<div class="calloutboxgray">
<center><p class="bolded"><a name="links" id="links"></a>QUICK LINKS</p>
<a href="http://asg-online.ghg.com/login.jsp" target="_blank"><img src="../images/timecard.png" alt="Time Card" /></a> <a href="https://www.expertplan.com/primebenefits.jsp" target="_blank"><img src="../images/401k.png" alt="ASG 401K" /></a> <a href="https://mail.google.com/a/asg-llc.com" target="_blank"><img src="../images/asgemail.png" alt="Time Card" /></a></center>
<a name="tax" id="tax"></a></div><div class="calloutbox"> <p class="bolded">TAX FORMS</p>
<a name="insurance" id="insurance"></a> </div>
<div class="calloutbox"> <p class="bolded">INSURANCE DOCUMENTS</p>
<ul>
<a name="benefits" id="benefits"></a></div>
<div class="calloutbox"> <p class="bolded">MEDICAL BENEFITS</p>
<a name="k401k" id="k401k"></a></div>
<div class="calloutbox"> <p class="bolded">401K DOCUMENTS</p>
</div>
<div class="calloutbox"><p class="bolded">ASG EMPLOYEE DOCUMENTS</p>
</div>
</body><br /><br /><br />
</html>
</div>
</div>
</div>
</div>
</div>
<div class="clearfloat" /></div>
<!-- end #header -->
</div>
<!-- end #mainContent -->
<div class="green_link" id="footer"><?php include ("../includes/footer.php") ?>
<!-- end #footer --></div>
<!-- end #wrapper --></div>
</body>
</html>
Before I scrap this guys code and start re-building this from scratch, testing all the while, I thought I’d ask. One of you guys might see what I’m missing here!
Thanks!
:kitty2: Haikukitty :kitty: