tombalfoort
Gebruiker
- Lid geworden
- 25 sep 2006
- Berichten
- 386
Hallo allemaal. het is een simpel mailforum die ik gevonden heb maar ik krijg deze foutcodes steeds. Weet iemand misschien wat het is?
phpfoutcode:
index.php
mailforumsend.php
Weet iemand misschien wat er anders moet ?
phpfoutcode:
PHP:
Notice: Undefined variable: onderwerp in C:\www\Root\blog\contact\mailformsend.php on line 10
Notice: Undefined variable: naam in C:\www\Root\blog\contact\mailformsend.php on line 13
Notice: Undefined variable: email in C:\www\Root\blog\contact\mailformsend.php on line 16
Notice: Undefined variable: bericht in C:\www\Root\blog\contact\mailformsend.php on line 19
Notice: Undefined variable: naam in C:\www\Root\blog\contact\mailformsend.php on line 19
Notice: Undefined variable: email in C:\www\Root\blog\contact\mailformsend.php on line 19
Notice: Undefined variable: email in C:\www\Root\blog\contact\mailformsend.php on line 19
index.php
PHP:
<form name="form1" method="post" action="mailformsend.php">
<table width="400" border="0">
<tr>
<td colspan="2">
<p align="center"><b><font face="Arial" size="2">Contact</font></p>
</b></td>
</tr>
<tr>
<td width="30%"><font face="Arial" size="2">Naam</font></td>
<td width="70%">
<input type="text" name="naam" size="20">
</td>
</tr>
<tr>
<td width="30%"><font face="Arial" size="2">Email</font></td>
<td width="70%">
<input type="text" name="email" size="20">
</td>
</tr>
<tr>
<td width="30%"><font face="Arial" size="2">Onderwerp</font></td>
<td width="70%">
<input type="text" name="onderwerp" size="20">
</td>
</tr>
<tr>
<td width="30%"><font face="Arial" size="2">Bericht</font></td>
<td width="70%">
<textarea rows="2" name="bericht" cols="20"></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<font face="Arial" size="2">
<input type="submit" name="submit" value="Verstuur">
</font>
</td>
</tr>
</table>
</form>
mailforumsend.php
PHP:
<html>
<head>
<title>Tom Balfoort.com</title>
</head>
<body>
<?
$joumail = "jouwemailadres";
mail("$joumail", "$onderwerp", "
Beste $joumail,
Je hebt een bericht ontvangen van $naam, $email.
Dit was zijn bericht:
$bericht
Mzzl,
$joumail", "From: $naam<$email>\nReturn-path: $email");
echo "We hebben je bericht ontvangen<br>";
echo "Over een paar dagen krijg je bericht terug!<br>";
?>
Weet iemand misschien wat er anders moet ?