Anpassung Kontaktformular fehlgeschlagen
tox:
Anpassung Kontaktformular fehlgeschlagen (26.11.2009, 23:15)
- FWP Neuling
Guten Tag,
ich habe das Kontaktformular um ein input-Feld erweitert
[code]<form method="post" action="index.php?sPage=contact&PHPSESSID={$PHPSESS}">
{if $smarty.get.bSuccess == "1"}
<div class="err">
E-Mail wurde erfolgreich versandt!
</div>
{/if}
<div class="product_details">
<table id="contact_tab">
<tr>
<td>
{if $smarty.post.bError.cfs3_name != ""}
<div class="err">
{/if}{$aOutput.contactName} *{if $smarty.post.bError.cfs3_name != ""}
</div>{/if}
</td>
<td>
<input type="text" name="cfs3_name" value="{$smarty.post.cfs3_name}" />
</td>
</tr>
{if $smarty.post.bError.cfx_name != ""}
<tr>
<td colspan="2" class="err">
{$smarty.post.bError.cfx_name}
</td>
</tr>
{/if}
<tr>
<td>
{if $smarty.post.bError.cfx_mail != ""}
<div class="err">
{/if}
{$aOutput.contactEmail} *
{if $smarty.post.bError.cfx_mail != ""}
</div>
{/if}
</td>
<td>
<input type="text" name="cfx_mail" value="{$smarty.post.cfx_mail}" />
</td>
</tr>{if $smarty.post.bError.cfx_mail != ""}
<tr>
<td colspan="2" class="err">
{if $smarty.post.bError.cfx_mail == 2}Die Syntax der Email-Adresse ist ungültig
<br/>
{/if}
{if $smarty.post.bError.cfx_mail == 3}Der Mailserver akzeptiert diese Email-Adresse nicht!
<br/>
{/if}
</td>
</tr>
{/if}
<tr>
<td>
{if $smarty.post.bError.fsx_subject != ""}
<div class="err">
{/if}
{$aOutput.contactSubject}
{if $smarty.post.bError.fsx_subject != ""}
</div>
{/if}
</td>
<td>
{if $smarty.get.subject != ""}
<input type="text" name="fsx_subject" size="30" value="{$smarty.get.subject}" />
{else}
<input type="text" name="fsx_subject" size="30" value="{$smarty.post.fsx_subject}" />
{/if}
</td>
</tr>
<tr>
<td>
{if $smarty.post.bError.cfs3_message != ""}
<div class="err">
{/if}
{$aOutput.contactMessage} *
{if $smarty.post.bError.cfs3_message != ""}
</div>{/if}
</td>
<td>
<textarea name="cfs3_message" rows="4" cols="40" >{$smarty.post.cfs3_message}</textarea>
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="submit" name="cf_submit" value="E-Mail versenden" />
</td>
</tr>
</table>
</div>
</form>
[/code]
Beim Versand der Email wird nun jede Email nicht mehr anerkannt.
Wo liegt das Problem?
Die Validierung mittels Name funktioniert, nur der Versand klappt nicht wenn das Feld im Formular ist.
Vorher ging der Versand ohne Probleme.
mit freundlichen Grüßen
Christian Rose
ich habe das Kontaktformular um ein input-Feld erweitert
[code]<form method="post" action="index.php?sPage=contact&PHPSESSID={$PHPSESS}">
{if $smarty.get.bSuccess == "1"}
<div class="err">
E-Mail wurde erfolgreich versandt!
</div>
{/if}
<div class="product_details">
<table id="contact_tab">
<tr>
<td>
{if $smarty.post.bError.cfs3_name != ""}
<div class="err">
{/if}{$aOutput.contactName} *{if $smarty.post.bError.cfs3_name != ""}
</div>{/if}
</td>
<td>
<input type="text" name="cfs3_name" value="{$smarty.post.cfs3_name}" />
</td>
</tr>
{if $smarty.post.bError.cfx_name != ""}
<tr>
<td colspan="2" class="err">
{$smarty.post.bError.cfx_name}
</td>
</tr>
{/if}
<tr>
<td>
{if $smarty.post.bError.cfx_mail != ""}
<div class="err">
{/if}
{$aOutput.contactEmail} *
{if $smarty.post.bError.cfx_mail != ""}
</div>
{/if}
</td>
<td>
<input type="text" name="cfx_mail" value="{$smarty.post.cfx_mail}" />
</td>
</tr>{if $smarty.post.bError.cfx_mail != ""}
<tr>
<td colspan="2" class="err">
{if $smarty.post.bError.cfx_mail == 2}Die Syntax der Email-Adresse ist ungültig
<br/>
{/if}
{if $smarty.post.bError.cfx_mail == 3}Der Mailserver akzeptiert diese Email-Adresse nicht!
<br/>
{/if}
</td>
</tr>
{/if}
<tr>
<td>
{if $smarty.post.bError.fsx_subject != ""}
<div class="err">
{/if}
{$aOutput.contactSubject}
{if $smarty.post.bError.fsx_subject != ""}
</div>
{/if}
</td>
<td>
{if $smarty.get.subject != ""}
<input type="text" name="fsx_subject" size="30" value="{$smarty.get.subject}" />
{else}
<input type="text" name="fsx_subject" size="30" value="{$smarty.post.fsx_subject}" />
{/if}
</td>
</tr>
<tr>
<td>
{if $smarty.post.bError.cfs3_message != ""}
<div class="err">
{/if}
{$aOutput.contactMessage} *
{if $smarty.post.bError.cfs3_message != ""}
</div>{/if}
</td>
<td>
<textarea name="cfs3_message" rows="4" cols="40" >{$smarty.post.cfs3_message}</textarea>
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="submit" name="cf_submit" value="E-Mail versenden" />
</td>
</tr>
</table>
</div>
</form>
[/code]
Beim Versand der Email wird nun jede Email nicht mehr anerkannt.
Wo liegt das Problem?
Die Validierung mittels Name funktioniert, nur der Versand klappt nicht wenn das Feld im Formular ist.
Vorher ging der Versand ohne Probleme.
mit freundlichen Grüßen
Christian Rose
Seite 1 von 1
Ähnliche Beiträge zu Anpassung Kontaktformular fehlgeschlagen
| Beitrag | Forum | Antworten |
| Upload fehlgeschlagen: Server returned HTTP-Status #406
(Erstellt von Pywi am 04.10.2011, 18:09) |
FAQ | 0 |
| Warenkorb: Anpassung Rabattdarstellung für Kleinunternehmer
(Erstellt von Lena am 09.04.2011, 10:43) |
Funktionsfragen | 11 |
| Anpassung Kleinunternehmen bei Artikelansicht
(Erstellt von Jonas [FWP] am 01.04.2011, 15:09) |
Funktionsfragen | 9 |
| Leere mails über Kontaktformular!
(Erstellt von deko-trends am 28.01.2011, 11:34) |
Installation und Einrichtung | 4 |
| Anpassung der Darstellung bei der Produktübersicht
(Erstellt von Lena am 31.10.2010, 0:25) |
Design-Anpassungen Version 4 | 4 |





