php-resource




Archiv verlassen und diese Seite im Standarddesign anzeigen :
mail formular


 
livegoal
03-12-2005, 20:19 
 
Hallo,

Ich hab mir einen eMail Formular erstellt nur ich brauch noch hilfe.

<form action="mailto:HIER DEINE E-MAIL-ADRESSE"method="post">


<div align="center">
<table border="0" cellpadding=0 cellspacing=0 width="400">

<tr valign="middle" align="left">
<td colspan="3"><font face="arial, Helvetica, sans-serif" size="4"><b><div align="center">Ihre Daten : <font size="1"><font color=#ff0000>(ohne Umlaute)</font></font></div></b></font><br>

</td>
<tr valign="middle" align="left">
<td align=right width="130"><font color="000000" face="Arial, Helvetica, sans-serif" size="-1"><b>Name:</b></font></td>
<td width="20"><font face="Arial, Helvetica, sans-serif" size="-1"></font></td>
<td width="250"> <font face="Arial, Helvetica, sans-serif" size="-1">
<input type="text" name="name" value="" size="40" >
</font></td>
</tr>
<tr valign="middle" align="left">
<td align=right width="130"><font color="000000" face="Arial, Helvetica, sans-serif" size="-1"><b>Vorname:</b></font></td>
<td width="20"><font face="Arial, Helvetica, sans-serif" size="-1"></font></td>
<td width="250"> <font face="Arial, Helvetica, sans-serif" size="-1">
<input type="text" name="vorna" value="" size="40" >
</font></td>
</tr>
<tr valign="middle" align="left">
<td align=right width="130"><font color="000000" face="Arial, Helvetica, sans-serif" size="-1"><b>Straße,
Nr.:</b></font></td>
<td width="20"><font face="Arial, Helvetica, sans-serif" size="-1"></font></td>
<td width="250"> <font face="Arial, Helvetica, sans-serif" size="-1">
<input type="text" name="strasse" value="" size="40" >
</font></td>
</tr>
<tr valign="middle" align="left">
<td align=right width="130"><font color="000000" face="Arial, Helvetica, sans-serif" size="-1"><b>Postleitzahl:</b></font></td>
<td width="20"><font face="Arial, Helvetica, sans-serif" size="-1"></font></td>
<td width="250"> <font face="Arial, Helvetica, sans-serif" size="-1">
<input type="text" name="plz" value="" size="10" >
</font></td>
</tr>
<tr valign="middle" align="left">
<td align=right width="130"><font color="000000" face="Arial, Helvetica, sans-serif" size="-1"><b>Ort:</b></font></td>
<td width="20"><font face="Arial, Helvetica, sans-serif" size="-1"></font></td>
<td width="250"> <font face="Arial, Helvetica, sans-serif" size="-1">
<input type="text" name="ort" value="" size="40" >
</font></td>
</tr>
<tr valign="middle" align="left">
<td align=right width="130"><font color="000000" face="Arial, Helvetica, sans-serif" size="-1"><b>Land:</b></font></td>
<td width="20"><font face="Arial, Helvetica, sans-serif" size="-1"></font></td>
<td width="250"> <font face="Arial, Helvetica, sans-serif" size="-1">
<input type="text" name="land" value="Deutschland" size="40" >
</font></td>
</tr>
<tr valign="middle" align="left">
<td align=right width="130"><font color="000000" face="Arial, Helvetica, sans-serif" size="-1"><b>Telefon:</b></font></td>
<td width="20"><font face="Arial, Helvetica, sans-serif" size="-1"></font></td>
<td width="250"> <font face="Arial, Helvetica, sans-serif" size="-1">
<input type="text" name="tel" size="40" >
</font></td>
</tr>
</tr>
<tr valign="middle" align="left">
<td align=right width="130"><font color="000000" face="Arial, Helvetica, sans-serif" size="-1"><b>E-Mail:</b></font></td>
<td width="20"><font face="Arial, Helvetica, sans-serif" size="-1"></font></td>
<td width="250"> <font face="Arial, Helvetica, sans-serif" size="-1">
<input type="text" name="email" size="40" >
</font></td>
</tr>
<tr valign="middle" align="left">
<td width="130" align="right"><font color="000000" face="Arial, Helvetica, sans-serif" size="-1"><b><b>Homepage:</b></b></font></td>
<td width="20"><font face="Arial, Helvetica, sans-serif" size="-1"></font></td>
<td width="250"><font face="Arial, Helvetica, sans-serif" size="-1">
<input type="text" name="web" value="http://" size="40" >
</font></td>
</tr>
<tr valign="middle" align="left">
<td width="130"><font face="Arial, Helvetica, sans-serif" size="-1">
<input type="hidden" name="recipient" value="mail@DOMAIN">
<input type="hidden" name="subject" value="VERMERK"><!-- Hier evtl. einen Vermerk reinschreiben ! ---------------------- -->
</font></td>
<td width="20"><font face="Arial, Helvetica, sans-serif" size="-1"></font></td>
<td width="250">
<font face="Arial, Helvetica, sans-serif" size="-1">
</font></td>
</tr>

<tr valign="middle" align="left">
<td colspan="3"><font face="Arial, Helvetica, sans-serif"><b><div align="center"><h3>Ihre Nachricht : <font size="1"><font color=#ff0000>(ohne Umlaute)</font></font>
</h3></div>
</b>

</td>

</tr>
<tr valign="middle" align="left">
<td colspan="3"><font face="Arial, Helvetica, sans-serif" size="-1">
<textarea cols=50 rows=8 name="kommentar" ></textarea>
</font></td>
</tr>


</table>

<br>

<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center"><input type="submit" name="Abschicken" value="Abschicken">
</div>
</td>

<td>
<div align="center"><input type="reset" name="Löschen" value="Formular löschen"></div>
</td>
</tr>

</table>
</form>
</div>


Mein erstes Porblem ist das man die Pflicht fragen ausfüllt wenn nicht dann soll da eine Warnung kommen.
Und mein zweites Problem ist das wenn der User das email Verschickt dann soll es zu einem Dankschön seite weiterleiten.

 
Abraxax
04-12-2005, 11:47 
 
http://www.php-resource.de/forum/showthread.php?s=&threadid=50454

 
NilsV
04-12-2005, 13:26 
 
Am einfachsten schickst du deine Daten zu einem anderen PHP-Skript, was die auswertet. Sind nicht alle Daten angegeben, darf der Benutzer das nachholen, ansonsten verschickst du das per mail() und gibst deine Seite aus

- -

Alle Zeitangaben in WEZ +2. Es ist jetzt 16:22 Uhr.