Hej..
Sidder og er ved at rette fejlene på min side så den opfylder w3c html 4.01 Transitional..
Koden er :
<?
if ($used < $total)
{ echo "<form action='upload/upload.php' ENCTYPE='multipart/form-data' method='post'><br>";
echo "<table width='100%'>";
echo "<tr><td align='center'>";
echo "<input type='hidden' name='form_password' size='10' value='test'><br>";
echo "<input type='file' name='userfile'><br>";
echo " <input type='submit' name='upload' value=' Upload '> <input type='submit' name='refresh' value=' Se Filer '>";
echo "</td></tr>";
echo "<tr><td><?=$message</td></tr>";
echo "</table>";
echo "</form>";
}
else
{
echo "<table width=100%>";
echo "<tr><td align=center>";
echo "Upload mappen er fyldt!</td></tr>";
echo "</table>";
}
?>
Dette er så included i html..
Men via deres validator får jeg dette :
Line 185, column 194: document type does not allow element "FORM" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME" start-tag
...E='multipart/form-data' method='post'><br><table width='100%'><tr><td align='
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Har rodet med det i flere timer, og kan simpelthen ikke finde løsningen... nogle idéer?
--