Fejl 40 i Firefox
Ja jeg oplever en meget typisk fejl40 i firefox, nemlig at en side ser fint nok ud i IE men ikke i firefox, Er der måske en venlig sjæl der kan hjælpe mig lidt, Siden er Tentatively Validates As HTML 4.01 men alligevel vælger firefox at mine tabeller skal stå anderledes end i IE************** KODE *******************************
<?
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>domaene.dk</title>
</head>
<body style="background-image : url(boddybg.gif);">
<?
If (isset($Quicklogin))
{
/* Validate of user */
$database = mysql_connect("localhost", "user", "password");
mysql_select_db("Database", $database);
$user = mysql_query("select * from userlogin where Username = '$Username' and Password = '$Password'");
$userarray = mysql_fetch_assoc($user);
$usercount = mysql_num_rows($user);
If ($usercount >= 1)
{
$row = 1;
do {
If ($Username == $userarray['Username'] and $Password == $userarray['Password'])
{$Usernamelogin = $PHPSESSID;
echo $Usernamelogin;}
else
{echo "Du er ikke logget ind";}
}
while ($row <= $Usercount);
$row++
;}
else
{};}
if(isset($Username)) {
$_SESSION[userid] = $userarray[Id] // brugerid hentet fra dbopslag.
;}
/* Faste main variabler */
$Host = "http://www.domaene.dk/";
$Tidhash = date("G:i:s");
$Unik = sha1(md5($Tidhash));
$Tid = date("G:i");
$Dato = date("d.m.Y");
If (isset($Site))
{$Site = $Site;}
Else
{$Site = 1;}
/* echo $PHPSESSID; */
?>
<table align="center" cellspacing="2" cellpadding="2" border="0">
<tr>
<td style="width : 700Px; height: 768px; text-align: center;">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2"><img src="banner.gif" width="700" height="150" alt="" border="0"></td>
</tr>
<tr>
<td colspan="2" style="width: 700 px; height: 10px; background-color : #6495ED; text-align: right; font : normal normal normal 10px Verdana;
letter-spacing: 0px; padding-right: 10px; color: #F0F8FF;"><?echo "Klokken er $Tid idag den $Dato";?></td>
</tr>
<tr>
<td style="width: 150 px; height: 500px; background-color : #00389A; vertical-align: top; padding-top: 17px;">
<table align="center" cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="width: 110 px; height: 10px; background-color : #6495ED; text-align: right; font : normal normal normal 10px Verdana;
letter-spacing: 0px;">*</td>
</tr>
<tr>
<td style="width: 110 px; height: 200px; background-color : #F5F5F5; text-align: center; font : normal normal normal 10px Verdana;
letter-spacing: 0px;">
<table cellspacing="2" cellpadding="2" border="0">
<tr>
<td style="width: 110 px;font : normal normal normal 10px Verdana;
letter-spacing: 0px;"><a href="#" style="color : Black;">Firmaprofil</a></td>
</tr>
<tr>
<td style="font : normal normal normal 10px Verdana;
letter-spacing: 0px;"><a href="#" style="color : Black;">Ydelser</a></td>
</tr>
<tr>
<td style="font : normal normal normal 10px Verdana;
letter-spacing: 0px;"><a href="#" style="color : Black;">Support</a></td>
</tr>
<tr>
<td style="font : normal normal normal 10px Verdana;
letter-spacing: 0px;"><a href="#" style="color : Black;">Kontakt</a></td>
</tr>
<tr>
<td style="font : normal normal normal 10px Verdana;
letter-spacing: 0px;"> </td>
</tr>
<tr>
<td style="font : normal normal normal 10px Verdana;
letter-spacing: 0px;"><a href="#" style="color : Black;">Login</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width: 110 px; height: 10px; background-color : #6495ED; text-align: left; font : normal normal normal 10px Verdana;
letter-spacing: 0px; padding-left: 10px;">*</td>
</tr>
</table>
<br>
<table align="center" cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="width: 115 px; height: 10px; background-color : #6495ED; text-align: right; font : normal normal normal 10px Verdana;
letter-spacing: 0px;">*</td>
</tr>
<tr>
<td style="width: 115 px; height: 200px; background-color : #F5F5F5; text-align: center; font : normal normal normal 10px Verdana;
letter-spacing: 0px;">
<?
if(isset($_SESSION[userid])) {
$database = mysql_connect("localhost", "user", "password");
mysql_select_db("database", $database);
$user = mysql_query("select * from userlogin where Id = '$_SESSION[userid]'");
$userarray = mysql_fetch_assoc($user);
Echo "<form action=\"$Host?Username=\" method=\"post\">
<table cellspacing=\"2\" cellpadding=\"2\" border=\"0\">
<tr>
<td style=\"font : Normal Normal Bold 11px arial; letter-spacing: 1px;\">Brugerdata.</td>
</tr>
<tr>
<td style=\"font : normal normal bold 10px Verdana;
letter-spacing: 0px;\"><br>Firma:</td>
</tr>
<tr>
<td style=\"font : normal italic normal 10px Verdana;
letter-spacing: 0px;\">$userarray[Firmanavn]</td>
</tr>
<tr>
<td style=\"font : normal normal bold 10px Verdana;
letter-spacing: 0px;\">Bruger:</td>
</tr>
<tr>
<td style=\"font : normal italic normal 10px Verdana;
letter-spacing: 0px;\">$userarray[Kontakt]</td>
</tr>
<tr>
<td style=\"font : normal normal normal 10px Verdana;
letter-spacing: 0px;\"><input type=\"submit\" name=\"Quicklogin\" value=\"Log ud.\" style=\"width: 80px; height: 17px;font : normal normal normal 10px Verdana;\"></td>
</tr>
</table>
</form>
"
;
}
else { Echo "
<form action=\"$Host\" method=\"post\">
<table cellspacing=\"2\" cellpadding=\"2\" border=\"0\">
<tr>
<td style=\"font : Normal Normal Bold 11px arial; letter-spacing: 1px;\">Quick Login.</td>
</tr>
<tr>
<td style=\"font : normal normal normal 10px Verdana;
letter-spacing: 0px;\"><br>Username:</td>
</tr>
<tr>
<td style=\"font : normal normal normal 10px Verdana;
letter-spacing: 0px;\"><input type=\"text\" name=\"Username\" style=\"width: 80px; height: 15px;font : normal normal normal 10px Verdana;\"></td>
</tr>
<tr>
<td style=\"font : normal normal normal 10px Verdana;
letter-spacing: 0px;\">Password:</td>
</tr>
<tr>
<td style=\"font : normal normal normal 10px Verdana;
letter-spacing: 0px;\"><input type=\"password\" name=\"Password\" style=\"width: 80px; height: 15px;font : normal normal normal 10px Verdana;\"></td>
</tr>
<tr>
<td style=\"font : normal normal normal 10px Verdana;
letter-spacing: 0px;\"><input type=\"submit\" name=\"Quicklogin\" value=\"Login\" style=\"width: 80px; height: 17px;font : normal normal normal 10px Verdana;\"></td>
</tr>
</table>
</form>";}?>
</td>
</tr>
<tr>
<td style="width: 115 px; height: 10px; background-color : #6495ED; text-align: left; font : normal normal normal 10px Verdana;
letter-spacing: 0px; padding-left: 10px;">*</td>
</tr>
</table>
</td>
<td style="width: 550 px; height: 500px; background-color : #00389A;">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="width: 515 px; height: 10px; background-color : #6495ED; text-align: center; font : normal normal normal 10px Verdana;
letter-spacing: 0px; text-align: right; padding-right: 10px;">*</td>
</tr>
<tr>
<td style="width: 515 px; height: 443px; background-color : #F5F5F5; text-align: left; font : normal normal normal 10px Verdana;
letter-spacing: 0px; background-image : url(bgmain.gif); padding: 10px; vertical-align: top;">
<?
$database = mysql_connect("localhost", "User", "password");
mysql_select_db("database", $database);
$product = mysql_query("select * from sitetext where Id = '$Site'");
$result= mysql_fetch_assoc($product);
eval("?>". $result['Text']);
echo $str;
?>
</td>
</tr>
<tr>
<td style="width: 515 px; height: 10px; background-color : #6495ED; text-align: center; font : normal normal normal 10px Verdana;
letter-spacing: 0px; padding-left: 10px; text-align: left;">*</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" style="width: 700 px; height: 10px; background-color : #6495ED; text-align: center;
font : normal normal normal 10px Verdana;
letter-spacing: 10px; color:#F0F8FF;">* Copyright Firma.dk All rights reserved. *</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
********************* Slut *************************
Håber nogen kan hjælpe mig
MC