Hi,
I've just downloaded Netscape 6 (latest PRE-release).
I wanted to be "ready" for any problems that might exist on my current websites.
Though PHP is server side, I encountered a big problem.
I used the "meta refresh" command which works perfect with IE 5.x and NS 4.x but on Netscape 6 pre-release, it won't refresh the page, instead it just shows the command on screen as if it was text.
The code that I use is below, can someone please tell me if this is a Netscape 6 bug, or that I am doing something wrong?
--------------snip----------
<?
require "include.php";
if($login && $pass) {
mysql_connect($host,$usernm,$pwd) or die ("Problem!");
$pass = md5($pass);
$sql = "SELECT * FROM $table_admin WHERE myba_login = '$login' ";
$r = mysql_db_query($database,$sql);
if(!mysql_num_rows($r)) header("Location: admin.php");
$user = mysql_fetch_array($r);
if($user["myba_pwd"] == $pass) {
setcookie(MyCookie, "$login $pass", time()+3600);
$msg = "<meta http-equiv=\"Refresh\" content=\"0;url=./admin_main.php\">";
} else {
header ("Location: admin.php");
}
}
if($msg) echo $msg;
?>
<head>
[etc. here is where the HTML form is for filling in pwd and login]
--------------snip----------
Note: admin.php = itself
admin_main.php = to go to if login succeeds