• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Problem nach Validierung

FreddyS

Neues Mitglied
Hallo, ich habe, wie es mir hier im forum empfohlen wurde, alle formulare validiert und die meisten bugs auch behoben.

An einem beisse ich mir allerdings die zähne aus:
PHP:
<?PHP
$vakt="ak";
include('besucher.php');
include('ub222ST1.inc.php');
nclude('zugangP.php');
echo'<div class="inhalt">';
/* Formular-Beginn */
echo "<form name='f' action='ub222akt1.php' method='post'>";
echo "<input name='ak' type='hidden'>";
echo "<input name='id' type='hidden'>"; 
echo'<div style=" height:810px; width:450px; font-size:12px; overflow: auto;">'; 
/* Tabellen-Beginn */
echo "<table border>"

Was ist hier falsch, ich erhalte folgende fehlermeldung:

document type does not allow element "INPUT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

 
weil das input in keinem block-element steht (da es ja im form-element steht...)

wenn du die form vor dem div "inhalt" aufmachst dürfte der fehler net mehr kommen. oder du machst einfach einen span um die inputs...
aber er meckert halt an das ein nicht-block-element (inline) alleine vor sich hinsteht...
 
<div class="inhalt"><form name='f' action='ub222akt1.php' method='post'><input name='ak' type='hidden'><input name='id' type='hidden'><div style=" height:810px; width:450px; font-size:12px; overflow: auto;"><table><tr><td><b>Datum</b></td><td><b>Aktuelle Meldung</b></td><td><b>Auswahl</b></td></tr><tr><td><input style='background-color:#fffacd; color:#808000;' name='vo[27]' value='14.11.2009' size='10'></td><td><input style='background-color:#fffacd; color:#808000;' name='vo[27]' value='Auktion des nha'size=43'</td><td><a href='javascript:send(1,27);'>anzeigen</a></td></tr><tr><td><input style='background-color:#fffacd; color:#808000;' name='vo[26]' value='13.11.2009' size='10'></td><td><input style='background-color:#fffacd; color:#808000;' name='vo[26]' value='Körung des -Anhal'size=43'</td><td><a href='javascript:send(1,26);'>anzeigen</a></td></tr>
 
hallo, danke thor, noch zur ergänzung:

Alle daten werden in der tabelle inhaltlich richtig aufbereitet und ausgegeben (funktioniert auf FF, IE und OPERA).

Nur der Validator mosert alles an (input, table und alle tr-elemente)
 
Sorry
Code:
<div class="inhalt">
<form name='f' action='ub222akt1.php' method='post'>
<input name='ak' type='hidden'>
<input name='id' type='hidden'>
<div style=" height:810px; width:450px; font-size:12px; overflow: auto;">
<table><tr>
<td><b>Datum</b></td>
<td><b>Aktuelle Meldung</b></td>
<td><b>Auswahl</b></td></tr>
<tr><td><input style='background-color:#fffacd; color:#808000;' name='vo[27]' value='14.11.2009' size='10'></td>
<td><input style='background-color:#fffacd; color:#808000;' name='vo[27]' value='Auktion des nha'size=43'</td>
<td><a href='javascript:send(1,27);'>anzeigen</a></td></tr>
<tr><td><input style='background-color:#fffacd; color:#808000;' name='vo[26]' value='13.11.2009' size='10'></td>
<td><input style='background-color:#fffacd; color:#808000;' name='vo[26]' value='Körung des -Anhal'size=43'</td>
<td><a href='javascript:send(1,26);'>anzeigen</a></td></tr>
 
Zurück
Oben