folgendes Code-Stück macht einfach nicht was ich will:
1. Die Schrift die die Eingabefelder beschreibt ist nicht mit der Klasse text formatiert - sollte es aber.
2. ausserdem hat der Validator was zu meckern. Ich weiß aber echt nicht was
[php:1:4c757e1142]
<p class="text">Kontaktformular</p>
<table border="0" cellpadding="1" cellspacing="10">
<div class="text">
<form action="kontakt.php" method="post">
<tr>
<td>Name:</td>
<td><input name="Name" style="background-color:#990000; color:#FFFFFF" size="20" type="text"></td>
</tr>
<tr>
<td>eMail:</td>
<td><input name="Email" style="background-color:#990000; color:#FFFFFF" size="20" type="text"></td>
</tr>
<tr>
<td>Betreff:</td>
<td><select name="Betreff" size="1" style="background-color:#990000; color:#FFFFFF"><option>Hilfe</option>
<option>Kritik</option><option>Werbung</option></select></td>
</tr>
<tr>
<td>Nachricht:</td>
<td><textarea class="kontakt" cols="40" name="Nachricht" rows="7" style="background-color:#990000; color:#FFFFFF"></textarea></td>
</tr>
<tr>
<td>Wünsche Antwort:</td>
<td>
Ja <input name="Antwort" style="background-color:#990000" checked type="radio" value="ja">
Nein <input name="Antwort" style="background-color:#990000" type="radio" value="nein">
</td>
</tr>
<tr>
<td align="center" colspan="2"><input name="Send" type="submit" value="Abschicken"> <input name="Reset" type="reset" value="Löschen"></td>
</tr>
</form>
</div>
</table>
<div class="text">
<?php
$Empfaenger = "webmaster@dodo1912.de";
if($_REQUEST['Send'])
{
if(empty($_REQUEST['Name']) || empty($_REQUEST['Email']) || empty($_REQUEST['Nachricht']))
{
echo"Bitte füllen Sie alle Felder aus!";
}
else
{
$Mailnachricht = "Sie haben folgende Nachricht erhalten: \n\n";
while(list($Formularfeld, $Wert)=each($_REQUEST))
{
if($Formularfeld!="Send")
{
$Mailnachricht .= $Formularfeld.": ".$Wert."\n";
}
}
$Mailnachricht .= "\nDatum/Zeit: ";
$Mailnachricht .= date("d.m.Y H:i:s");
$Mailbetreff = "Kontakt: ";
$Mailbetreff .= $_REQUEST['Betreff'];
mail($Empfaenger, $Mailbetreff, $Mailnachricht, "From: ".$_REQUEST['Email']);
echo"Vielen Dank für Ihre eMail!";
}
}
else
{
echo"Bitte füllen sie alle Felder aus und senden sie das Formular ab";
}
?>
</div>
[/php:1:4c757e1142]
Hier das Ergebnis der Validation:
[php:1:4c757e1142]
Below are the results of attempting to parse this document with an SGML parser.
1. Error Line 128 column 18: document type does not allow element "DIV" here.
<div class="text">
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
✉
2. Error Line 130 column 3: document type does not allow element "TR" here.
<tr>
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
✉
3. Error Line 134 column 3: document type does not allow element "TR" here.
<tr>
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
................
......
....Noch etliche male das gleiche (wegen dem TR)
[/php:1:4c757e1142]
die url zu der Seite:
[/php]
1. Die Schrift die die Eingabefelder beschreibt ist nicht mit der Klasse text formatiert - sollte es aber.
2. ausserdem hat der Validator was zu meckern. Ich weiß aber echt nicht was
[php:1:4c757e1142]
<p class="text">Kontaktformular</p>
<table border="0" cellpadding="1" cellspacing="10">
<div class="text">
<form action="kontakt.php" method="post">
<tr>
<td>Name:</td>
<td><input name="Name" style="background-color:#990000; color:#FFFFFF" size="20" type="text"></td>
</tr>
<tr>
<td>eMail:</td>
<td><input name="Email" style="background-color:#990000; color:#FFFFFF" size="20" type="text"></td>
</tr>
<tr>
<td>Betreff:</td>
<td><select name="Betreff" size="1" style="background-color:#990000; color:#FFFFFF"><option>Hilfe</option>
<option>Kritik</option><option>Werbung</option></select></td>
</tr>
<tr>
<td>Nachricht:</td>
<td><textarea class="kontakt" cols="40" name="Nachricht" rows="7" style="background-color:#990000; color:#FFFFFF"></textarea></td>
</tr>
<tr>
<td>Wünsche Antwort:</td>
<td>
Ja <input name="Antwort" style="background-color:#990000" checked type="radio" value="ja">
Nein <input name="Antwort" style="background-color:#990000" type="radio" value="nein">
</td>
</tr>
<tr>
<td align="center" colspan="2"><input name="Send" type="submit" value="Abschicken"> <input name="Reset" type="reset" value="Löschen"></td>
</tr>
</form>
</div>
</table>
<div class="text">
<?php
$Empfaenger = "webmaster@dodo1912.de";
if($_REQUEST['Send'])
{
if(empty($_REQUEST['Name']) || empty($_REQUEST['Email']) || empty($_REQUEST['Nachricht']))
{
echo"Bitte füllen Sie alle Felder aus!";
}
else
{
$Mailnachricht = "Sie haben folgende Nachricht erhalten: \n\n";
while(list($Formularfeld, $Wert)=each($_REQUEST))
{
if($Formularfeld!="Send")
{
$Mailnachricht .= $Formularfeld.": ".$Wert."\n";
}
}
$Mailnachricht .= "\nDatum/Zeit: ";
$Mailnachricht .= date("d.m.Y H:i:s");
$Mailbetreff = "Kontakt: ";
$Mailbetreff .= $_REQUEST['Betreff'];
mail($Empfaenger, $Mailbetreff, $Mailnachricht, "From: ".$_REQUEST['Email']);
echo"Vielen Dank für Ihre eMail!";
}
}
else
{
echo"Bitte füllen sie alle Felder aus und senden sie das Formular ab";
}
?>
</div>
[/php:1:4c757e1142]
Hier das Ergebnis der Validation:
[php:1:4c757e1142]
Below are the results of attempting to parse this document with an SGML parser.
1. Error Line 128 column 18: document type does not allow element "DIV" here.
<div class="text">
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
✉
2. Error Line 130 column 3: document type does not allow element "TR" here.
<tr>
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
✉
3. Error Line 134 column 3: document type does not allow element "TR" here.
<tr>
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
................
......
....Noch etliche male das gleiche (wegen dem TR)
[/php:1:4c757e1142]
die url zu der Seite:
[/php]