T-b0
Legacy Member
Dag allemaal,
Kan iemand me zeggen waarom mijn email form niet werkt..
contact.php :
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body leftmargin="0" topmargin="0">
<form method="post" action="index2.php?id=10">
<p><img src="images/headercontact.gif" width="86" height="33"></p>
<p>Subject:<br />
<input type="text" name="subject" size="20">
<br />
Email:<br />
<input type="text" name="email" size="20">
<br />
Comments:<br />
<textarea cols="80" rows="10" name="comments"></textarea>
<br />
<input type="submit" value="submit">
</p>
</form>
</body>
</html>
en contactexec.php :
<?
$subject = $_POST['subject']; // This is will be the subject of the email
$email = $_POST['email'];
$comments = $_POST['comments'];
$submit = $_POST['submit'];
if($submit)
{
mail("[email protected]", "$subject", "$email", "$comments");
}
?>
de action van de form (index2.php?id=10 is dus gelijk aan contactexec.php..
dank bij voorbaat
Kan iemand me zeggen waarom mijn email form niet werkt..
contact.php :
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body leftmargin="0" topmargin="0">
<form method="post" action="index2.php?id=10">
<p><img src="images/headercontact.gif" width="86" height="33"></p>
<p>Subject:<br />
<input type="text" name="subject" size="20">
<br />
Email:<br />
<input type="text" name="email" size="20">
<br />
Comments:<br />
<textarea cols="80" rows="10" name="comments"></textarea>
<br />
<input type="submit" value="submit">
</p>
</form>
</body>
</html>
en contactexec.php :
<?
$subject = $_POST['subject']; // This is will be the subject of the email
$email = $_POST['email'];
$comments = $_POST['comments'];
$submit = $_POST['submit'];
if($submit)
{
mail("[email protected]", "$subject", "$email", "$comments");
}
?>
de action van de form (index2.php?id=10 is dus gelijk aan contactexec.php..
dank bij voorbaat