Kai
04.04.2002, 04:43:23
Nochmal eine Frage:
Quelltext von kontaktformular.htm:
<form name="form1" method="post" action="kontakt.php">
<table width="100%" border="0" height="83%">
<tr>
<td height="2" width="50%">
<div align="left">
<input type="checkbox" name="klimatechnik" value="checkbox" checked>
Klimatechnik</div>
</td>
<td height="2" width="50%">
<div align="left">
<input type="checkbox" name="heizungsbau" value="checkbox" checked>
Heizungsbau </div>
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="left">
<input type="checkbox" name="sani" value="checkbox" checked>
Sanitäranlagen</div>
</td>
<td height="2" width="50%">
<div align="left">
<input type="checkbox" name="solar" value="checkbox" checked>
Solartechnik</div>
</td>
</tr>
<tr>
<td height="2" width="50%"> </td>
<td height="2" width="50%"> </td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihr Name:</div>
</td>
<td height="2" width="50%">
<input type="text" name="name" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihre Anschrift:</div>
</td>
<td height="2" width="50%">
<input type="text" name="anschrift" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihre E-Mailadresse:</div>
</td>
<td height="2" width="50%">
<input type="text" name="mail" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihr Wohnort:</div>
</td>
<td height="2" width="50%">
<input type="text" name="wohnort" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihre Firma:</div>
</td>
<td height="2" width="50%">
<input type="text" name="firma" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihre Telefonnummer:</div>
</td>
<td height="2" width="50%">
<input type="text" name="nummer" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihre Faxnummer:</div>
</td>
<td height="2" width="50%">
<input type="text" name="faxnummer" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="right"> </div>
</td>
<td height="2" width="50%"> </td>
</tr>
<tr>
<td height="2" width="50%">
<div align="right">
<input type="submit" name="abschicken" value="Abschicken">
</div>
</td>
<td height="2" width="50%">
<input type="reset" name="loeschen" value="Zurücksetzen">
</td>
</tr>
</table>
</form>
dann von kontakt.php :
<html>
<head>
<title>Kontakt</title>
</head>
<body bgcolor="#000080">
<hr>
<p align="center"> </p>
<p align="center"><font color="#FFFFFF" size="4">Vielen Dank für ihr Interesse,
wir werden uns in Kürze bei ihnen melden.</font></p>
<p align="center"> </p>
<p align="center"><font color="#FFFFFF" size="4">Bitte überprüfen sie noch mal
ihre Angaben und koorigieren sie sie, falls nötig</font></p>
<p align="center"> </p>
<p align="center"><font size="3" color="#FFFFFF"> Ihr Name: </font></p>
<p align="center"><font size="3" color="#FFFFFF">
<? echo $name; ?>
</font></p>
<p align="center"><font color="#FFFFFF" size="3">Ihre Anschrift: </font></p>
<p align="center"><font color="#FFFFFF" size="3">
<?
echo $anschrift; ?>
</font></p>
<p align="center"><font color="#FFFFFF" size="3">Ihre E-Mail Adresse: </font></p>
<p align="center"><font color="#FFFFFF" size="3">
<? echo $mail; ?>
</font></p>
<p align="center"><font color="#FFFFFF" size="3">Ihr Wohnrt: </font></p>
<p align="center"><font color="#FFFFFF" size="3">
<? echo $wohnort; ?>
</font></p>
<p align="center"><font color="#FFFFFF" size="3">Ihre Firma: </font></p>
<p align="center"><font color="#FFFFFF" size="3">
<? echo $firma; ?>
</font></p>
<p align="center"><font color="#FFFFFF" size="3"> Ihre Telefonnummer: </font></p>
<p align="center"><font color="#FFFFFF" size="3">
<? echo $nummer; ?>
</font></p>
<p align="center"><font color="#FFFFFF" size="3">Ihre Faxnummer: </font></p>
<p align="center"><font color="#FFFFFF" size="3">
<? echo $faxnummer; ?>
</font>
<form method="POST" action="sendmsg.php">
<p align="center"><input type="submit" value="Abschicken" name="B1"></p>
</form>
</body>
</html>
und von sendmsg.php:
<html>
<head>
<title> Sendmessage</title>
<STYLE>
<!--
a:visited {color:#ffffff; text-decoration: none }
a:hover {color:#ffff00; text-decoration: none }
a:link {color:#ffffff; text-decoration:none}
a:active {color:#ffffff; text-decloration:none }
-->
</STYLE>
</head>
<body bgcolor="#000080">
<hr>
<p align="right" size="5"><font size="5" color="#FFFFFF">Kontaktformular</font></p>
<p align="center"><font color="#FFFFFF" size="4">Ihr Formular enthält folgende
Angaben:</font></p>
<p align="center"><font color="#FFFFFF">
<?
echo $text;
echo "<br>";
echo "Meine Anschrift: ";
echo $anschrift;
echo "<br>";
echo "Mein Wohnort: ";
echo $wohnort;
echo "<br>";
echo "Meine Firma";
echo $firma;
echo "<br>";
echo "Meine Telefonnummer: ";
echo $nummer;
echo "<br>";
echo "Meine Faxnummer: ";
echo $faxnummer;
?>
</font></p>
<p align="center"> </p>
<p align="center">
<?
$empfaenger = "KaiSamelin@web.de";
$betreff = "Informationen über ihre Produkte";
$text = "Ich möchte Informationen über:" .
if ($klimatechnik == 1)
{
echo " Klimatechnik, "
}
if ($heizungsbau == 1)
{
echo "Klimatechnik, ";
}
if($sani == 1)
{
echo "Sanitärtechnik";
}
if($service == 1)
{
echo "und Solartechnik";
}
?>
<br>
</p>
<p align="center"><br>
<? echo "Meine Daten:";
echo "<br>";
echo "Meine Anschrift: ";
echo $anschrift;
echo "<br>";
echo "Mein Wohnort: ";
echo $wohnort;
echo "<br>";
echo "Meine Firma";
echo $firma;
echo "<br>";
echo "Meine Telefonnummer: ";
echo $nummer;
echo "<br>";
echo "Meine Faxnummer: ";
echo $faxnummer;
mail($empfaenger, $betreff, $text, "Von: $name <$mail>);
?>
<br>
<br>
</p>
<div align="center">
<p align="center" size="6">
<? echo "Nochmals vielen Dank sehr geehrte(r)" . $name . ", sie werden in Kürze von uns hören.";
?>
</p>
</div>
<p align="center"> </p>
<p> </p>
<p> </p>
<p align="center"><font size="5" color="#FFFFFF"><a href="http://mitglied.lycos.de/KaiSamelin/index2.htm" target="_top"><font size="4">Zurück
zur Startseite</font></a> </font></p>
</body>
</html>
Wenn ich auf abschicken klicke bekomme ich weder eine E-Mail noch werden die Variablen in kontakt.php ausgegeben warum?
Quelltext von kontaktformular.htm:
<form name="form1" method="post" action="kontakt.php">
<table width="100%" border="0" height="83%">
<tr>
<td height="2" width="50%">
<div align="left">
<input type="checkbox" name="klimatechnik" value="checkbox" checked>
Klimatechnik</div>
</td>
<td height="2" width="50%">
<div align="left">
<input type="checkbox" name="heizungsbau" value="checkbox" checked>
Heizungsbau </div>
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="left">
<input type="checkbox" name="sani" value="checkbox" checked>
Sanitäranlagen</div>
</td>
<td height="2" width="50%">
<div align="left">
<input type="checkbox" name="solar" value="checkbox" checked>
Solartechnik</div>
</td>
</tr>
<tr>
<td height="2" width="50%"> </td>
<td height="2" width="50%"> </td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihr Name:</div>
</td>
<td height="2" width="50%">
<input type="text" name="name" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihre Anschrift:</div>
</td>
<td height="2" width="50%">
<input type="text" name="anschrift" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihre E-Mailadresse:</div>
</td>
<td height="2" width="50%">
<input type="text" name="mail" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihr Wohnort:</div>
</td>
<td height="2" width="50%">
<input type="text" name="wohnort" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihre Firma:</div>
</td>
<td height="2" width="50%">
<input type="text" name="firma" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihre Telefonnummer:</div>
</td>
<td height="2" width="50%">
<input type="text" name="nummer" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="center">Ihre Faxnummer:</div>
</td>
<td height="2" width="50%">
<input type="text" name="faxnummer" size="18">
</td>
</tr>
<tr>
<td height="2" width="50%">
<div align="right"> </div>
</td>
<td height="2" width="50%"> </td>
</tr>
<tr>
<td height="2" width="50%">
<div align="right">
<input type="submit" name="abschicken" value="Abschicken">
</div>
</td>
<td height="2" width="50%">
<input type="reset" name="loeschen" value="Zurücksetzen">
</td>
</tr>
</table>
</form>
dann von kontakt.php :
<html>
<head>
<title>Kontakt</title>
</head>
<body bgcolor="#000080">
<hr>
<p align="center"> </p>
<p align="center"><font color="#FFFFFF" size="4">Vielen Dank für ihr Interesse,
wir werden uns in Kürze bei ihnen melden.</font></p>
<p align="center"> </p>
<p align="center"><font color="#FFFFFF" size="4">Bitte überprüfen sie noch mal
ihre Angaben und koorigieren sie sie, falls nötig</font></p>
<p align="center"> </p>
<p align="center"><font size="3" color="#FFFFFF"> Ihr Name: </font></p>
<p align="center"><font size="3" color="#FFFFFF">
<? echo $name; ?>
</font></p>
<p align="center"><font color="#FFFFFF" size="3">Ihre Anschrift: </font></p>
<p align="center"><font color="#FFFFFF" size="3">
<?
echo $anschrift; ?>
</font></p>
<p align="center"><font color="#FFFFFF" size="3">Ihre E-Mail Adresse: </font></p>
<p align="center"><font color="#FFFFFF" size="3">
<? echo $mail; ?>
</font></p>
<p align="center"><font color="#FFFFFF" size="3">Ihr Wohnrt: </font></p>
<p align="center"><font color="#FFFFFF" size="3">
<? echo $wohnort; ?>
</font></p>
<p align="center"><font color="#FFFFFF" size="3">Ihre Firma: </font></p>
<p align="center"><font color="#FFFFFF" size="3">
<? echo $firma; ?>
</font></p>
<p align="center"><font color="#FFFFFF" size="3"> Ihre Telefonnummer: </font></p>
<p align="center"><font color="#FFFFFF" size="3">
<? echo $nummer; ?>
</font></p>
<p align="center"><font color="#FFFFFF" size="3">Ihre Faxnummer: </font></p>
<p align="center"><font color="#FFFFFF" size="3">
<? echo $faxnummer; ?>
</font>
<form method="POST" action="sendmsg.php">
<p align="center"><input type="submit" value="Abschicken" name="B1"></p>
</form>
</body>
</html>
und von sendmsg.php:
<html>
<head>
<title> Sendmessage</title>
<STYLE>
<!--
a:visited {color:#ffffff; text-decoration: none }
a:hover {color:#ffff00; text-decoration: none }
a:link {color:#ffffff; text-decoration:none}
a:active {color:#ffffff; text-decloration:none }
-->
</STYLE>
</head>
<body bgcolor="#000080">
<hr>
<p align="right" size="5"><font size="5" color="#FFFFFF">Kontaktformular</font></p>
<p align="center"><font color="#FFFFFF" size="4">Ihr Formular enthält folgende
Angaben:</font></p>
<p align="center"><font color="#FFFFFF">
<?
echo $text;
echo "<br>";
echo "Meine Anschrift: ";
echo $anschrift;
echo "<br>";
echo "Mein Wohnort: ";
echo $wohnort;
echo "<br>";
echo "Meine Firma";
echo $firma;
echo "<br>";
echo "Meine Telefonnummer: ";
echo $nummer;
echo "<br>";
echo "Meine Faxnummer: ";
echo $faxnummer;
?>
</font></p>
<p align="center"> </p>
<p align="center">
<?
$empfaenger = "KaiSamelin@web.de";
$betreff = "Informationen über ihre Produkte";
$text = "Ich möchte Informationen über:" .
if ($klimatechnik == 1)
{
echo " Klimatechnik, "
}
if ($heizungsbau == 1)
{
echo "Klimatechnik, ";
}
if($sani == 1)
{
echo "Sanitärtechnik";
}
if($service == 1)
{
echo "und Solartechnik";
}
?>
<br>
</p>
<p align="center"><br>
<? echo "Meine Daten:";
echo "<br>";
echo "Meine Anschrift: ";
echo $anschrift;
echo "<br>";
echo "Mein Wohnort: ";
echo $wohnort;
echo "<br>";
echo "Meine Firma";
echo $firma;
echo "<br>";
echo "Meine Telefonnummer: ";
echo $nummer;
echo "<br>";
echo "Meine Faxnummer: ";
echo $faxnummer;
mail($empfaenger, $betreff, $text, "Von: $name <$mail>);
?>
<br>
<br>
</p>
<div align="center">
<p align="center" size="6">
<? echo "Nochmals vielen Dank sehr geehrte(r)" . $name . ", sie werden in Kürze von uns hören.";
?>
</p>
</div>
<p align="center"> </p>
<p> </p>
<p> </p>
<p align="center"><font size="5" color="#FFFFFF"><a href="http://mitglied.lycos.de/KaiSamelin/index2.htm" target="_top"><font size="4">Zurück
zur Startseite</font></a> </font></p>
</body>
</html>
Wenn ich auf abschicken klicke bekomme ich weder eine E-Mail noch werden die Variablen in kontakt.php ausgegeben warum?