1987-dominik
Neues Mitglied
Hallo Zusammen,
ich habe ein Problem beim Erstellen eines Formulares für eine Kundenumfrage. Ich habe eine "datei1.html" mit einem Formular. Beim Drücken des Buttons "Absenden" wird die "datei2.php" aufgerufen und die E-Mail versendet, allerdings ohne Inhalt. Was mache ich falsch?
Ich habe schon recherchiert, habe aber leider keine Lösung für mein Problem finden können.
Auszug datei1.html:
Auszug aus datei2.php
Vielen Dank für Eure Hilfe im Voraus und Grüße,
dominik.
ich habe ein Problem beim Erstellen eines Formulares für eine Kundenumfrage. Ich habe eine "datei1.html" mit einem Formular. Beim Drücken des Buttons "Absenden" wird die "datei2.php" aufgerufen und die E-Mail versendet, allerdings ohne Inhalt. Was mache ich falsch?
Ich habe schon recherchiert, habe aber leider keine Lösung für mein Problem finden können.
Auszug datei1.html:
HTML:
<table style="width: 750">
<tr>
<td style="width: 744px; mso-fareast-font-family: 'Times New Roman';" class="style71" colspan="2">
<form method="post" action="datei2.php">
</td>
</tr>
<tr>
<td style="width: 246px; height: 23px" class="style72">
<strong>1 von 10:</strong></td>
<td style="width: 744px; height: 23px" class="style63">
<p class="style73">
<strong>In welcher Position arbeiten Sie in Ihrem Unternehmen?</strong></p>
</td>
</tr>
<tr>
<td valign="top" style="width: 744px" colspan="2">
<table style="width: 100%">
<tr>
<td style="width: 193px">
<form method="post">
<fieldset name="Group1" style="width: 740px; height: 60px">
<legend class="style21">Bitte zutreffende Antwort auswählen</legend>
<table style="width: 100%">
<tr>
<td style="width: 158px">
<input checked="true" name="Radio2" type="radio"><span class="style11">Inhaber</span></td>
<td style="width: 197px">
<input name="Radio2" type="radio"><span class="style11">Geschäftsführer</span></td>
<td style="width: 212px">
<input class="style11" name="Radio2" type="radio"><span class="style11">Abteilungsleiter</span></td>
<td><input name="Radio2" type="radio"><span class="style11">Mitarbeiter</span></td>
</tr>
</table>
</fieldset></form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table style="width: 750">
<tr>
<td class="style11" style="height: 28px">
<table style="width: 100%">
<tr>
<td class="style74" style="width: 177px"><strong>
2 von 10:</strong></td>
<td class="style73"><strong>Die eingesetzte Software ist
qualitativ hochwertig und zuverlässig</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="style11">
<form method="post">
<fieldset name="Group1">
<legend class="style79">Bitte zutreffende Antwort auswählen</legend>
<table style="width: 100%">
<tr>
<td style="width: 57px" class="style80">
bester Wert</td>
<td style="width: 84px">
<input checked="true" name="Radio1" type="radio" value="1">1</td>
<td style="width: 91px">
<input name="Radio1" type="radio"><span class="style80">2</span></td>
<td style="width: 89px">
<input name="Radio1" type="radio"><span class="style80">3</span></td>
<td style="width: 80px"><input name="Radio1" type="radio"><span class="style80">4</span></td>
<td style="width: 83px">
<input name="Radio1" type="radio"><span class="style80">5</span></td>
<td style="width: 89px">
<input name="Radio1" type="radio"><span class="style81">6</span></td>
<td style="width: 88px">
<input name="Radio1" type="radio"><span class="style81">7</span></td>
<td style="width: 86px">
<input name="Radio1" type="radio"><span class="style81">8</span></td>
<td style="width: 109px">
<input name="Radio1" type="radio"><span class="style81">9</span></td>
<td style="width: 82px">
<input name="Radio1" type="radio"><span class="style81">10</span></td>
<td class="style80">schlechtester Wert</td>
</tr>
</table>
<form method="post" action=http://domain.de/datei2.php name="Umfrage">
<input class="style78" name="Submit1" style="width: 135px; height: 33px" type="submit" value="Umfrage absenden"></form>
Auszug aus datei2.php
PHP:
<?php
if (mail("[email protected]","formular gesendet",$T1))
{
echo "email erfolgreich verschickt";
}
else
{
echo "fehler aufgetreten";
}
?>
Vielen Dank für Eure Hilfe im Voraus und Grüße,
dominik.