Hi,
Ich hab ein kleines Prob mit einem Formular das ich per PHP versenden möchte. Alles hat bisher geklappt. Jetzt wollte ich ein Pulldown-Menü noch hinzufügen tritt nun ein fehler auf: Die Mail kommt an aber ohne Inhalt. Ich bin noch ziemlicher PHP-Anfänger vielleicht kann mir jemand helfen. Danke im vorraus!
Hier das Formular:
Hier das PHP-Script das die Mail versendet:
Ich hab ein kleines Prob mit einem Formular das ich per PHP versenden möchte. Alles hat bisher geklappt. Jetzt wollte ich ein Pulldown-Menü noch hinzufügen tritt nun ein fehler auf: Die Mail kommt an aber ohne Inhalt. Ich bin noch ziemlicher PHP-Anfänger vielleicht kann mir jemand helfen. Danke im vorraus!
Hier das Formular:
PHP:
<form action=<? echo $_SERVER['PHP_SELF']; ?> method=post>
<table width="99%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td height="23" valign="top" class="normtext"><strong>Heftauswahl:</strong></td>
<td height="23" valign="top" class="normtext"><select name="select">
<option>Heft 1</option>
<option>Heft 2</option>
</select></td>
</tr>
<tr>
<td valign="top" class="normtext"><strong>Name: </strong></td>
<td><input name="name" style="width:200px;"></td>
</tr>
<tr>
<td width="23%" valign="top" class="normtext"><strong>Vorname:
</strong></td>
<td><input name="vorname" style="width:200px;"></td>
</tr>
<tr>
<td width="23%" valign="top" class="normtext"><strong>
E-Mail-Adresse: </strong></td>
<td><input name="email" style="width:200px;"></td>
</tr>
<tr>
<td width="23%" valign="top" class="normtext"><strong>Straße:
</strong></td>
<td><input name="strasse" style="width:200px;"></td>
</tr>
<tr>
<td width="23%" height="26" valign="top" class="normtext"><p><strong>PLZ</strong>:</p></td>
<td><input name="plz" style="width:200px;"></td>
</tr>
<tr>
<td width="23%" valign="top" class="normtext"><strong>Ort:</strong></td>
<td><input name="ort" style="width:200px;"></td>
</tr>
<tr>
<td width="23%" valign="top" class="normtext"><strong>Land:</strong></td>
<td><input name="land" style="width:200px;"> </td>
</tr>
<tr>
<td></td>
<td><input name="absenden" type="submit" value="bestellen">
</td>
</tr>
</table>
</form>
Hier das PHP-Script das die Mail versendet:
PHP:
<? if($absenden){
$select="Heft-Auswahl: ".$select." <br>
Land: ".$land." <br>
PLZ: ".$plz." <br>
Ort: ".$ort." <br>
Strasse: ".$strasse." <br>
email: ".$email." <br>
Vorname: ".$vorname." <br>
Name: ".$name;
mail("xxxx@xxxxxx.de","karibik-Journal Nachbestellung",$text,"Content-Type: text/html");
echo "<font color=#FFFFFF size=2 face=Verdana, Arial, Helvetica, sans-serif><strong>Bestellung erfolgreich versandt </strong></font>";
}
?>