I really hate Netscape!! Anyway, I've been working a project and just realized it doesn't work with Netscape. I have a login page that passes two hidden variables and loads another page. In IE the hidden page is being loaded but I just get a blank screen in Netscape.
Here's the code for the login page:
<html>
<head>
<title>e-SIRS Instructor Module -- Login</title>
</head>
<CENTER>
<img src="uofm_logo.gif" width="400" height="80" border="0" alt=""><BR><br>
<font size="+3">Electronic Student Instructional Rating System (e-SIRS)<p>Instructor Module</font>
<P>
<FORM ACTION="logon.php" METHOD="post" NAME="frmlogon">
<b>Username: </b><INPUT TYPE="text" NAME=u SIZE="20">
<p>
<b>Password: </b><INPUT TYPE="password" NAME=p SIZE="20">
<p>
<INPUT TYPE="submit" NAME="submit" VALUE="LOGIN"> <INPUT TYPE="reset" VALUE="RESET">
</FORM><BR>
<A HREF="http://www.et.memphis.edu">Cancel</A><P><P>
</CENTER>
</html></body>
Here is the code for the page that the above form loads:
<?php
extract($_POST);
$user = "";
$password = "";
$hostname = "localhost";
$db = "";
$conn = mysql_connect($hostname, $user, $password)
or die("<p>Failed to Connect to Database:</p>" . mysql_error());
$sql = "SELECT * FROM user_login WHERE username = '".$u."' and password = '".$p."'";
$result = mysql_db_query($db, $sql)
or die("Invalid query: " . $sql . "<p>" . mysql_error());
//mysql_close($conn);
$user_login = mysql_fetch_array($result);
if ($user_login)
{
echo "<HTML><BODY ONLOAD=hiddenform.submit();>";
echo "<FORM NAME=hiddenform ACTION=instructor_info.php METHOD=post>";
echo "<INPUT TYPE=hidden NAME=u VALUE=".$user_login["username"].">";
echo "<INPUT TYPE=hidden NAME=p VALUE=".$user_login["password"].">";
echo "</FORM>";
}
else{
echo "<html><body><center>LOGIN FAILURE...<BR><A HREF=logon.htm>Retry</A></CENTER></BODY></HTML>";
}
?>
Notice the action in the php page suggests the loading of instructor_info.php. Again, in IE the instructor_info page displays without a problem but Netscape stays stuck on logon.php. In other words, after typing in a username and password and pressing enter using Netscape the URL shows:
http://www.domain.com/srproject/logon.php (& page is blank)
INSTEAD OF:
http://www.domain.com/srproject/instructor_info.php
Any assistance will be greatly appreciated!
Thanks,
EJ