Hello,
wo liegt das Problem? Wenn Du eine JavaScript-Funktion benutzt (check_fields() oder checkForm() ) oder wie auch immer die heißt, dann muss sie auch definiert werden.
Außerdem sollten alle Werte der Attribute der Input-Felder auch in Häkchen stehen, auch wenn es anders noch "geht".
Dein Formular funktioniert mit beiden Methoden; sowohl mit mailto: als auch mit Post. Allerdings haben manche Mailclient/Browser-Kombinationen Probleme damit, sodass es tatsächtlich günstiger ist, eine serverseitige Verarbeitung zu verwenden.
An ein paar Beispielen habe ich mal gezeigt, wie man die überlangen Zeilen lesbar umbrechen könnte. Das lässt sich leichter lesen.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE>Kontakt</TITLE>
<script type="text/javascript"> <!-- function checkForm() { var check = true;
// hier die einzelnen Felder testen // siehe http://de.selfhtml.org/javascript/objekte/forms.htm
return check; }
//--> </script>
</HEAD>
<BODY>
<!-- <form name="form10" action="mailto:email@anbieter.de" method="post" enctype="text/plain"> --> <form name="form10" action="http://selfhtml.bitworks.de/debug/kontrolle.php" method="post" enctype="multipart/form-data">
<table class="txt_content" cellspacing="3" cellpadding="2" width="100%" border=0> <tbody> <tr bgcolor="#e8e8e8"> <td valign="top" width="26%"><b>Name:</b></td> <td width="74%"><input style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #000000; WIDTH: 100%; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #000000;" name="f53"></td> </tr> <tr bgcolor=#e8e8e8> <td valign=top width="26%"><b>Vorname:</b></td> <td width="74%"><input style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #000000; WIDTH: 100%; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #000000" name=f54></td> </tr> <tr bgcolor=#e8e8e8> <td valign=top width="26%"><b>E-Mail:</b></td> <td width="74%"><input style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #000000; WIDTH: 100%; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #000000" name=f55></td> </tr> <tr bgcolor=#e8e8e8> <td valign=top width="26%"><b>Telefonnummer:</b></td> <td width="74%"><input style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #000000; WIDTH: 100%; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #000000" name=f56></td> </tr> <tr bgcolor=#e8e8e8> <td valign=top width="26%"><b>Betreff:</b></td> <td width="74%"><input style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #000000; WIDTH: 100%; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #000000" name=f57></td> </tr> <tr bgcolor=#e8e8e8> <td valign=top width="26%"><b>Nachricht:</b></td> <td width="74%"><textarea style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #000000; WIDTH: 100%; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #000000" name=f58 rows=5></textarea> <br></td> </tr> <tr bgcolor=#e8e8e8> <td width="26%" height=34> <input type="hidden" value="10" name="form"></td> <td align="right" width="74%" bgcolor="#e8e8e8" height="34"><input name="button" type="submit" style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #000000" onClick="return checkForm();" value=" Submit "></td> </tr> </tbody> </table> </form> </BODY> </HTML>
Viel Spaß noch beim Testen.
Harzliche Grüße aus http://www.annerschbarrich.de
Tom
Fortschritt entsteht nur durch die Auseinandersetzung der Kreativen Nur selber lernen macht schlau