Hi,
When a user tries to login using Netscape the login page just seems to refresh and that is it you still see the page but nothing happens. My Error checking, re-direction all work fine with IE.
here is the code:
<?
session_start();
$msg = "";
if($action) {
if ((!$username) || (!$password)) {
$msg = "Must enter Username or Password";
}
$db_name = "dbase";
$table_name = "user_info";
$connection = mysql_connect("***", "", "****") or die("Couldn't connect.");
$db = mysql_select_db($db_name, $connection) or die("Couldn't select database.");
$sql = "select username and password from $table_name where username ='$username' and password ='$password'";
$result = mysql_query($sql,$connection) or die("Couldn't execute query 1.");
$num = mysql_num_rows($result);
if ($num == 0) {
$msg = "Bad Login try again.";
}
if ($msg ==""){
$loggedIn = $username;
session_register("loggedIn");
//$enter = "Hello $loggedIn You may <a href=\"../index2.php\"> ENTER</a>";
header("location: ../index2.php?");
}
}
?>