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

Formular funktioniert nicht!

Flodi1

Neues Mitglied
Hallo Profis,

hab hier einen Code für ein Formular zur Anmeldung bei einem Lauf.
Wenn ich auf den "Senden"-Button klicke tut sich nichts warum? Das Formular wird nicht versendet! Was muss ich ändern.

Gruß

Florian


<table>
<tr>
<td class="head16" align="center" valign="top" width="100%">
</td>
</tr>
<tr>

Die mit * gekennzeichneten Felder sind <b>Pflichtfelder</b>.<br>
<br>
<input name="recipient" value="[email protected]" type="hidden"><input name="subject" value="Anmeldung zum Kuckuckslauf 2011" type="hidden"><input name="required" value="name,vorname,jahrgang,geschlecht,strecke," type="hidden"><input name="redirect" value="http://kuckuckslauf.jimdo.com/kuckuckslauf/sammelanmeldung/erfolgreiche-anmeldung/" type="hidden">
<table align="center" border="0" width="502">
<tbody>
<tr bgcolor="#faeae8">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Name:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><input size="40" name="name" type="text"></td>
</tr>
<tr bgcolor="#f9d8d5">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Vorname:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><input size="40" name="vorname" type="text"></td>
</tr>
<tr bgcolor="#faeae8">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Jahrgang:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><input size="5" name="jahrgang" type="text"></td>
</tr>
<tr bgcolor="#f9d8d5">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Geschlecht:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><select size="1" name="geschlecht">
<option value="männlich">Männlich</option>
<option value="weiblich">Weiblich</option>
</select></td>
</tr>
<tr bgcolor="#faeae8">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Verein:</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><input size="50" name="verein" type="text"></td>
</tr>
<tr bgcolor="#f9d8d5">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Strecke:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><select size="1" name="strecke">
<option>Bambinilauf</option>
<option>Schüler C-D weiblich</option>
<option>Schüler C-D männlich</option>
<option>Schüler A-B</option>
<option>Hobby-/Firmenlauf</option>
<option>10 km Hauptlauf</option>
</select></td>
</tr>
<tr bgcolor="#faeae8">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Weitere Angaben:</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><textarea name="angaben" rows="5" cols="40"></textarea></td>
</tr>
<tr>
<td colspan="2" valign="top" width="501"><br>
<br>
<center><input value="Abschicken" type="submit"></center></td>
</tr>
</tbody>
</table>
</form>
</tr>
</table>
 
Werbung:
hi

ich glaub es liegt daran tu doch mal folgendes hinzufügen
<form action="html-name.htm" method="post"
das siht dann so aus:

<table>
<tr>
<td class="head16" align="center" valign="top" width="100%">
</td>
</tr>
<tr>

Die mit * gekennzeichneten Felder sind <b>Pflichtfelder</b>.<br>
<br>
<form action="html-name" method="post">
<input name="recipient" value="[email protected]"

type="hidden"><input name="subject" value="Anmeldung zum Kuckuckslauf

2011" type="hidden"><input name="required"

value="name,vorname,jahrgang,geschlecht,strecke," type="hidden"><input

name="redirect"

value="http://kuckuckslauf.jimdo.com/kuckuckslauf/sammelanmeldung/erfol

greiche-anmeldung/" type="hidden">
<table align="center" border="0" width="502">
<tbody>
<tr bgcolor="#faeae8">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Name:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><input size="40"

name="name" type="text"></td>
</tr>
<tr bgcolor="#f9d8d5">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Vorname:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><input size="40"

name="vorname" type="text"></td>
</tr>
<tr bgcolor="#faeae8">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Jahrgang:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><input size="5"

name="jahrgang" type="text"></td>
</tr>
<tr bgcolor="#f9d8d5">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Geschlecht:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><select size="1"

name="geschlecht">
<option value="männlich">Männlich</option>
<option value="weiblich">Weiblich</option>
</select></td>
</tr>
<tr bgcolor="#faeae8">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Verein:</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><input size="50"

name="verein" type="text"></td>
</tr>
<tr bgcolor="#f9d8d5">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Strecke:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><select size="1"

name="strecke">
<option>Bambinilauf</option>
<option>Schüler C-D weiblich</option>
<option>Schüler C-D männlich</option>
<option>Schüler A-B</option>
<option>Hobby-/Firmenlauf</option>
<option>10 km Hauptlauf</option>
</select></td>
</tr>
<tr bgcolor="#faeae8">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Weitere

Angaben:</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><textarea name="angaben"

rows="5" cols="40"></textarea></td>
</tr>
<tr>
<td colspan="2" valign="top" width="501"><br>
<br>
<center><input value="Abschicken" type="submit"></center></td>
</form>
</tr>
</tbody>
</table>
</tr>
</table>

und da wo html name steht muss du dann durch dein html datei ersetzten.
das heisst wenn du auf abschicken klickt und du möchtest auf ne andere seite dann kommen die zb:page2.htm heisst dann musst du den namen da bei html-name durch page2.htm ersetzten

lg coderphaser
 
Werbung:
ja, ich hab deine code kopiert und habe für "<form action="html-name" method="post">"
das hier eingefügt "form action="http://kuckuckslauf.jimdo.com/kuckuckslauf/sammelanmeldung/erfolgreiche-anmeldung/" method="post">"
 
Werbung:
Werbung:
hier der code mach das einfach als html datei

<table>
<tr>
<td class="head16" align="center" valign="top" width="100%">
</td>
</tr>
<tr>

Die mit * gekennzeichneten Felder sind <b>Pflichtfelder</b>.<br>
<br>
<form action="http://kuckuckslauf.jimdo.com/kuckuckslauf/sammelanmeldung/erfolgreiche-anmeldung/" method="post">
<input name="recipient" value="[email protected]" type="hidden"><input name="subject" value="Anmeldung zum Kuckuckslauf 2011" type="hidden"><input name="required" value="name,vorname,jahrgang,geschlecht,strecke," type="hidden"><input name="redirect" value="http://kuckuckslauf.jimdo.com/kuckuckslauf/sammelanmeldung/erfolgreiche-anmeldung/" type="hidden">
<table align="center" border="0" width="502">
<tbody>
<tr bgcolor="#faeae8">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Name:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><input size="40" name="name" type="text"></td>
</tr>
<tr bgcolor="#f9d8d5">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Vorname:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><input size="40" name="vorname" type="text"></td>
</tr>
<tr bgcolor="#faeae8">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Jahrgang:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><input size="5" name="jahrgang" type="text"></td>
</tr>
<tr bgcolor="#f9d8d5">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Geschlecht:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><select size="1" name="geschlecht">
<option value="männlich">Männlich</option>
<option value="weiblich">Weiblich</option>
</select></td>
</tr>
<tr bgcolor="#faeae8">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Verein:</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><input size="50" name="verein" type="text"></td>
</tr>
<tr bgcolor="#f9d8d5">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Strecke:*</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><select size="1" name="strecke">
<option>Bambinilauf</option>
<option>Schüler C-D weiblich</option>
<option>Schüler C-D männlich</option>
<option>Schüler A-B</option>
<option>Hobby-/Firmenlauf</option>
<option>10 km Hauptlauf</option>
</select></td>
</tr>
<tr bgcolor="#faeae8">
<td valign="top" width="122" bgcolor="#EBEBEB"><b>Weitere Angaben:</b></td>
<td valign="top" bgcolor="#EBEBEB" width="201"><textarea name="angaben" rows="5" cols="40"></textarea></td>
</tr>
<tr>
<td colspan="2" valign="top" width="501"><br>
<br>
<center><input value="Abschicken" type="submit"></center></td>
</form>
</tr>
</tbody>
</table>
</tr>
</table>
 
Hallo.

Mit HTML kann man keine mails verschicken.
HTML ist eine Auszeichnungssprache und nichts weiter.

Du brauchst eine serverseitige scriptsprache die die Eingaben überprüft und das Formular dann abschickt.

Gruss
Elroy
 
Möchte noch anmerken, dass bitte die Code-Tags der Forensoftware
HTML:
, [PHP] und [CODE] für die Markierung von Codes und Quelltexten genutzt werden sollen. Das macht das Analysieren sehr viel einfacher.
 
Werbung:
Also wenn ich mir Folgendes ansehe, dann weis ich, warum das Formular nicht einmal die Seite im Action-Attribut aufruft:
HTML:
<table>
     <tbody>
         <tr>
             <td class="head16" width="100%" align="center" valign="top">
             </td>
         </tr>
          <tr>
             <td>
                 <form action="http://kuckuckslauf.jimdo.com/kuckuckslauf/sammelanmeldung/erfolgreiche-anmeldung/" method="post">
                     <input name="recipient" type="hidden" value="[email protected]"/>
                     <input name="subject" type="hidden" value="Anmeldung zum Kuckuckslauf 2011"/>
                     <input name="required" type="hidden" value="name,vorname,jahrgang,geschlecht,strecke,"/>
                     <input name="redirect" type="hidden" value="http://kuckuckslauf.jimdo.com/kuckuckslauf/sammelanmeldung/erfol greiche-anmeldung/"/>
                 </form>
             </td>
         </tr>
     </tbody>
</table>
1. Warum benutzt du eine Tabelle für etwas, das garnicht angezeigt wird,
2. warum benutzt du überhaupt Tabellen für etwas, was keine Tabelle ist und
3. warum schließt du das <form>-Tag VOR dem eigentlichen Formular?

LTFB.de - Learn The F***ing Basics
 
Zurück
Oben