Ciao a tutti non riesco a risolvere con la validazione del codice per un form secondo gli standard del w3c
il codice presente nella pagina è:
<div class="tabcontentstyle">
<div id="tcontent1" class="tabcontent">
<div align="center">[img]img/sm_prenota.gif[/img]
<strong class="pullquote">Verifica <span class="style1">disponibilità e prezzi</span> :[/b]</div>
<form action="check2.php" method="get" name="formData">
<table>
<tr>
<td>Data arrivo: </td>
Riga 1 <td><input type="text" name="data_partenza">[img]images/show-cal.gif[/img]</td>
</tr>
<tr>
<td>Data partenza: </td>
Riga 2 <td> <input type="text" name="data_arrivo">[img]images/show-cal.gif[/img]</td>
</tr>
<tr><td>Tipo di camera: </td>
<td> <select size="1" name="tipo_camera">
<?
$obj->connessione();
$dati=mysql_query("select * from configurazione where id=1");
while($array=mysql_fetch_array($dati)){
if($array[singola]==1)echo"<option value=\"singola\">singola</option>";
if($array[doppia]==1)echo"<option value=\"doppia\">doppia</option>";
if($array[doppiausosing]==1)echo"<option value=\"doppiausosing\">doppia uso singola</option>";
if($array[tripla]==1)echo"<option value=\"tripla\">tripla</option>";
if($array[quadrupla]==1)echo"<option value=\"quadrupla\">quadrupla</option>";
if($array[appartamento]==1)echo"<option value=\"appartamento\">appartamento</option>";
}
?>
</select> </td></tr>
</table>
Riga 3 <input type="button" onclick="javascript:apri('check2.php?data_partenza ='+document.formData.data_partenza.value+'&dat a_arrivo='+document.formData.data_arrivo.value+'&a mp;tipo_camera='+document.formData.tipo_camera.val ue,500,600);" value="Verifica disponibilita">
Riga 4 </form>
Riga 5 </div>
</div>
<div id="tcontent2" class="tabcontent">
<div align="center">[img]img/sm_lastminute.gif[/img]
<strong class="pullquote"><span class="style1">Offerte</span> Last Minute :[/b]</div>
<?
$obj->connessione();
$dati=mysql_query("select * from offerte order by id desc");
while($array=mysql_fetch_array($dati)){
echo "".$array[nome]."
".$array[italiano]."
";
}
?>
</div>
</div>
Mentre i messaggi di errore sono :
Validation Output: 10 Errors
---------------------------------------------------------------------------------------
Line 1, Column 48: end tag for "input" omitted, but OMITTAG NO was specified .
…put type="text" name="data_partenza"><a href="javascript:show_calendar('formD✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
---------------------------------------------------------------------------------------
Line 1, Column 8: start tag was here .
<td><input type="text" name="data_partenza"></td>✉
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
If this error occurred in a script section of your document, you should probably read this FAQ entry.
---------------------------------------------------------------------------------------
Line 2, Column 46: end tag for "input" omitted, but OMITTAG NO was specified .
…input type="text" name="data_arrivo"><a href="javascript:show_calendar('formD✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
----------------------------------------------------------------------------------------
Line 2, Column 8: start tag was here .
<td> <input type="text" name="data_arrivo"></td>✉
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
If this error occurred in a script section of your document, you should probably read this FAQ entry.
----------------------------------------------------------------------------------------
Line 3, Column 266: end tag for "input" omitted, but OMITTAG NO was specified .
…00);" value="Verifica disponibilita">✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
---------------------------------------------------------------------------------------
Line 3, Column 0: start tag was here .
<input type="button" onclick="javascript:apri('check2.php?data_partenza ='+docume
----------------------------------------------------------------------------------------
Line 1, Column > 80: XML Parsing Error: Opening and ending tag mismatch: input line 76 and a .
…nza"><a href="javascript:show_calendar('formData.data_part enza');" /><img src…✉
--------------------------------------------------------------------------------------
Line 2, Column > 80: XML Parsing Error: Opening and ending tag mismatch: input line 80 and a .
…o"><a href="javascript:show_calendar('formData.data_arri vo');" /><img src="im…✉
----------------------------------------------------------------------------------------
Line 4, Column 13: XML Parsing Error: Opening and ending tag mismatch: input line 89 and form .
</form>
----------------------------------------------------------------------------------------
Line 5, Column 10: XML Parsing Error: Opening and ending tag mismatch: form line 70 and div .
</div>
Ciao e grazie

Rispondi quotando


