ich versuche ein e-mail Formular mit einem Captcha zu erstellen. Ich habe im Forum verschiedene Beiträge gesehen, konnte aber kein funktionierendes Beispiel finden.
Was mache ich falsch?
Vielen Dank schon mal!
Rolf
Hier mein Code:
Code: Alles auswählen
<body>
<we:ifNotEditmode>
<div class="content1" style="">
<div class="menu1" style=""><a href="/index.php"><we:img name="logo" id="236" border="0" hspace="0" vspace="0" /></a>
<br><img src="/images/pixel.gif" alt="" width="10" height="22" border="0"><br>
<we:js id="235" /></div>
<div class="content2">
<div class="content_text" style="float: left; width: 50%;">
</we:ifNotEditmode>
<p>
<we:ifEditmode><span class="cms">Text:</span><br></we:ifEditmode>
<we:textarea name="Content" width="250" height="500" autobr="true" wysiwyg="true"/>
</p>
<we:form type="formmail" name="form1" method="post" recipient="xx@yy.net" from="info@zz.ch" subject="Website - Mitteilung" required="_name,email_adresse,mitteilung" onsuccess="276" onerror="277">
<table border="0" cellspacing="0" cellpadding="0" class="content_text" style="color: Silver;">
<tr>
<td align="right" valign="top" nowrap><b>Vor- und Nachname*:</b> </td>
<td width="6"></td>
<td valign="top"><input type="text" name="_name" class="input2" style="width: 200px;"></td>
</tr>
<tr><td colspan="3" height="10"> </td></tr>
<tr>
<td align="right" valign="top" nowrap><b>eMail*:</b> </td>
<td width="6"></td>
<td valign="top"><input type="text" name="email_adresse" class="input2" style="width: 200px;"></td>
</tr>
<tr><td colspan="3" height="10"> </td></tr>
<tr>
<td align="right" valign="top" nowrap><b>Ihre Mitteilung*:</b> </td>
<td width="6"></td>
<td valign="top"><textarea cols="" rows="" name="mitteilung" class="input1" style="width: 400px; height: 150px;"></textarea></textarea> <br>* Die markierten Felder sind erforderlich.</td>
</tr>
<tr><td colspan="3" height="10"> </td></tr>
<tr>
<td> </td>
<td width="6"></td>
<td><we:captcha subset="num" fontcolor="#ffffff" valign="middle" align="center" type="png" transparent="true"/></td>
</tr>
<tr>
<td align="right" valign="top" nowrap><b>Bitte geben Sie den Sicherheitscode ein:</b> </td>
<td width="6"></td>
<td valign="top"><input type="text" id="captcha_code" name="captcha_code" class="input2" style="width: 200px;"></td>
</tr>
<tr>
<td></td>
<td width="6"></td>
<td valign="top"><br><input type="submit" name="absenden"></td>
</tr>
</table>
<we:ifCaptcha name="captcha_code">
</we:formmail>
</we:ifCaptcha>
<we:else />
captcha not ok
</we:ifCaptcha>
</div>
<div class="content_text" style="float: right; width: 50%; text-align: center;">
</we:ifNotEditmode>
<p>
<we:ifEditmode><span class="cms">Imagebild:</span><br></we:ifEditmode>
<we:ifNotEmpty match="bild_image">
<we:img name="bild_image"/>
</we:ifNotEmpty>
</p>
<we:ifNotEditmode>
</div>
</div>
</div>
</we:ifNotEditmode>
</body>
</html>