PDA

Visualizza la versione completa : Non valida la pagina


Braco
02-04-2007, 18:59
Sto cercando di validare una pag con WC3 ma esce questo messaggio

Sorry, I am unable to validate this document because its content type is application/octet-stream, which is not currently supported by this service.

The Content-Type field is sent by your web server (or web browser if you use the file upload interface) and depends on its configuration. Commonly, web servers will have a mapping of filename extensions (such as ".html") to MIME Content-Type values (such as text/html).

That you received this message can mean that your server is not configured correctly, that your file does not have the correct filename extension, or that you are attempting to validate a file type that we do not support yet. In the latter case you should let us know that you need us to support that content type (please include all relevant details, including the URL to the standards document defining the content type) using the instructions on the Feedback Page.

La pagina è questa:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it">
<head>
<title>mioform</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/javascript" src="script-guest.js"></script>
<link rel="stylesheet" href="stile.css" type="text/css">

</head>

<body bgcolor="#9999FF">


<table width="400" align="center" cellpadding="4" cellspacing="0" bordercolor="#000000" style="border:1px solid">

<tr>
<td bgcolor="#cdfece" style="border-bottom:1px solid;"><div align="center"><font color="#0000ff" size="5" face="arial">

<table align="left" border="1">
<tr><td align="center">home1.gif (http://photoman.altervista.org)
</table>Photoman's Guestbook</font>
</td>
</tr>
<td bgcolor="#99CCCC">

<table width="400" border="0">
<?php
session_start()
?>
<form method="POST" action="ins.php" name="mioform" onkeyup="highlight(event)" onsubmit="return controlla()">
<tr>
<td><font size="2">NOME:</font><font size="2" color="red">*</font>
</td>
<td><input name="nome" id="nome" value="<?php echo $_SESSION['nome'];?>"size="30" type="text" maxlength="15" onblur="this.value=this.value.replace(/^\s*/,'')" />
../faccine/pxaura.gif
../faccine/rxide.gif
../faccine/cxonfuso.gif
../faccine/fxelice.gif
</td>
</tr>
<tr>
<td><font size="2">EMAIL:<font color="#008080"></font></td>
<td><input name="email" id="email" value="<?php echo $_SESSION['email'];?>" size="30" type="text" maxlength="30" onblur="this.value=ignoreSpaces(this.value)" />
../faccine/ixmpossibile.gif
../faccine/oxcchiolino.gif
../faccine/pxiange.gif
../faccine/oxk!.gif
</td>
</tr>
<tr>
<td><font size="2">SITO:<font color="#008080"></font></td>
<td><input name="url" id="url" value="<?php echo $_SESSION['url'];?>" size="30" type="text" maxlength="100" onblur="this.value=ignoreSpaces(this.value)" />
../faccine/txestardo.gif
../faccine/sxaluto.gif
</td>
</tr>
<tr>
<td><font size="2">CITTA':<font color="#008080"></font></td>
<td><input name="citta" id="citta" value="<?php echo $_SESSION['citta'];?>" size="30" type="text" maxlength="15" onBlur="this.value=ignoreSpaces(this.value)" />
</td>
</tr>
<tr>
<td valign="top"><font size="2">MESSAGGIO:</font><font size="2" color="red">*</font>








captca-image.php
<input type="text" name="validator" id="validator" size="5" />
<font size="2" color="red" face="arial">Scrivi il codice</font>

</td>
<td><textarea name="messaggio" id="messaggio" wrap="soft" cols="40" rows="10" onkeyup="conta(this.form)"
onblur="this.value=this.value.replace(/^\s*/,'')"><?echo $_SESSION['messaggio'];?></textarea>
</td>
</tr>
</table>
<table width="450" border="0">
<tr><td align="center" width="90"><input type="submit" value="Invia"></td>
<td><font face="arial" size="2">Max<input value="500" size="1" name="num" readonly>caratteri</font>
</td>
</tr>
</form>
</table>

<hr align="center" width="400" color="#d6d6d6"></hr>

<table width="450" border="0">
<tr><td valign="top" bgcolor="#99CCCC"><font size="2"><font size="2" color="red"> * </font><font size="2">Campi obbligatori</font>


</td>
</tr>
</table>
</table>





<?php
include("view.php");
?>

</body>

</html>

elysaweb
02-04-2007, 22:19
che estensione ha la tua pagina? con che nome l'hai salvata?

Braco
02-04-2007, 22:23
Originariamente inviato da elysaweb
che estensione ha la tua pagina? con che nome l'hai salvata?
La pag. è form.php, ma non credo sia l'estensione, se guardi qui www.photoman.altervista.org vedrai la home che si chiama index.php ed è stata validata.

elysaweb
02-04-2007, 22:36
in primo luogo, la tua pagina non è xhtml, ma html transitional..

in ogni caso ci sono una montagna di errori, ti posto il risultato della validazione:


Result: Failed validation, 24 errors
File: upload://Form Submission
Encoding: utf-8
Doctype: HTML 4.01 Transitional

1. Error Line 15 column 78: there is no attribute "BORDERCOLOR".

...adding="4" cellspacing="0" bordercolor="#000000" style="border:1px solid">

--> non usare bordercolor, ma style="border:1px solid #000000;"

2. Error Line 20 column 30: document type does not allow element "TABLE" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag.

<table align="left" border="1">

--> ma l'hai messa dentro a ??!

3. Error Line 23 column 4: end tag for "DIV" omitted, but its declaration does not permit this.

--> hai dimenticato di chiudere un div

4. Info Line 18 column 55: start tag was here.

...ce" style="border-bottom:1px solid;"><div align="center"><font color="#0000ff

5. Error Line 25 column 21: document type does not allow element "TD" here; assuming missing "TR" start-tag.

<td bgcolor="#99CCCC">

--> manca il tr

6. Error Line 31 column 108: document type does not allow element "FORM" here.

...event)" onsubmit="return controlla()">

--> il form va dentro un td, o fuori dalla table

7. Error Line 32 column 3: document type does not allow element "TR" here.

<tr>

--> idem

8. Error Line 33 column 33: end tag for "B" omitted, but its declaration does not permit this.

<td><font size="2">NOME:</font><font size="2" color="red"> *</font>


9. Info Line 33 column 19: start tag was here.

<td><font size="2">NOME:</font><font size="2" color="red"> *</font>

10. Error Line 33 column 66: end tag for element "B" which is not open.

..."2">NOME:</font><font size="2" color="red"> *</font>


11. Error Line 42 column 3: document type does not allow element "TR" here.

<tr>

12. Error Line 43 column 65: end tag for "FONT" omitted, but its declaration does not permit this.

...e="2">EMAIL:<font color="#008080"></font></td>

13. Info Line 43 column 4: start tag was here.

<td><font size="2">EMAIL:<font color="#008080"></font></td>

14. Error Line 51 column 3: document type does not allow element "TR" here.

<tr>

15. Error Line 52 column 64: end tag for "FONT" omitted, but its declaration does not permit this.

...ize="2">SITO:<font color="#008080"></font></td>

16. Info Line 52 column 4: start tag was here.

<td><font size="2">SITO:<font color="#008080"></font></td>

17. Error Line 58 column 3: document type does not allow element "TR" here.

<tr>

18. Error Line 59 column 66: end tag for "FONT" omitted, but its declaration does not permit this.

..."2">CITTA':<font color="#008080"></font></td>


19. Info Line 59 column 4: start tag was here.

<td><font size="2">CITTA':<font color="#008080"></font></td>

20. Error Line 63 column 3: document type does not allow element "TR" here.

<tr>


21. Error Line 64 column 51: end tag for "B" omitted, but its declaration does not permit this.

...p"><font size="2">MESSAGGIO:</font><font size="2" color="red"> *</fo..


22. Info Line 64 column 32: start tag was here.

<td valign="top"><font size="2">MESSAGGIO:</font><font size="2" color="red">

23. Error Line 64 column 84: end tag for element "B" which is not open.

...font><font size="2" color="red"> *</font>


24. Error Line 74 column 51: there is no attribute "WRAP".

...name="messaggio" id="messaggio" wrap="soft" cols="40" rows="10" onkeyup="cont


25. Error Line 78 column 7: end tag for "FORM" omitted, but its declaration does not permit this.

</table>


26. Info Line 31 column 0: start tag was here.

<form method="POST" action="ins.php" name="mioform" onkeyup="highlight(event)" o

27. Error Line 78 column 7: end tag for "TABLE" which is not finished.

</table>


28. Error Line 84 column 6: end tag for element "FORM" which is not open.

</form>


29. Error Line 87 column 37: there is no attribute "COLOR".

<hr align="center" width="400" color="#d6d6d6"></hr>


30. Error Line 87 column 51: end tag for element "HR" which is not open.

<hr align="center" width="400" color="#d6d6d6"></hr>


31. Error Line 90 column 129: end tag for "FONT" omitted, but its declaration does not permit this.

...t><font size="2">Campi obbligatori</font>


32. Info Line 90 column 94: start tag was here.

...<font size="2" color="red"> * </font><font size="2">Campi obbligatori[/i]</fo

NB:ora devo scappare, leggiti tutti gli errori con calma, prova a correggerli e poi tenta di nuovo la validazione!

PS: cambia il doctype in <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>

Braco
03-04-2007, 19:37
Che validatore hai usato?

elysaweb
04-04-2007, 14:06
validator.w3.org ... il solito ed unico!

Braco
04-04-2007, 17:38
Originariamente inviato da elysaweb
validator.w3.org ... il solito ed unico!
anche io, ma a me appare quella cosa e non gli errori...

elysaweb
04-04-2007, 19:20
cmq tu intanto correggi gli errori che ti ho segnalato e poi ne riparliamo. cmq ho tentato la validazione inserendo direttamente il codice, e non il link alla pagina!

Loading