waarom doet mijn prutseltje het niet?
wie o wie kan het mij vertellen?
---------------------
--------------
ik krijg als foutmeldingen steeds:
Notice: Undefined variable: naam in C:\XITAMI\webpages\php\mail\mail.php on line 6
Notice: Undefined variable: telefoon in C:\XITAMI\webpages\php\mail\mail.php on line 7
Notice: Undefined variable: email in C:\XITAMI\webpages\php\mail\mail.php on line 8
Notice: Undefined variable: adres in C:\XITAMI\webpages\php\mail\mail.php on line 9
Notice: Undefined variable: plaats in C:\XITAMI\webpages\php\mail\mail.php on line 10
Notice: Undefined variable: postcode in C:\XITAMI\webpages\php\mail\mail.php on line 11
Notice: Undefined variable: boodschap in C:\XITAMI\webpages\php\mail\mail.php on line 12
Warning: Bad Message destination in C:\XITAMI\webpages\php\mail\mail.php on line 16
-----------------
Wie kan mij helpen dit dingetje wel goed te laten werken?
wie o wie kan het mij vertellen?
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
| <html>
<head>
<title>Contact</title>
</head>
<body>
<center>
<p> </p>
<form method="POST" action="mail.php">
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" width="60%" height="266">
<tr>
<td width="28%" height="25"><font size="2" face="Verdana">Naam:</font></td>
</center>
<td width="93%" colspan="2" height="33">
<p align="left"><font face="Century Gothic"><input type="text" name="$naam" size="20"></font></td>
</tr>
<center>
<tr>
<td width="28%" height="25"><font size="2" face="Verdana">E-Mail:</font></td>
</center>
<td width="93%" colspan="2" height="33">
<p align="left"><font face="Century Gothic"><input type="text" name="$email" size="20"></font></td>
</tr>
<center>
<tr>
<td width="28%" height="25"><font size="2" face="Verdana">telefoon:</font></td>
</center>
<td width="93%" colspan="2" height="33">
<p align="left"><font face="Century Gothic"><input type="text" name="$telefoon" size="20"></font></td>
</tr>
<center>
<tr>
<td width="28%" height="25"><font size="2" face="Verdana">adres:</font></td>
</center>
<td width="93%" colspan="2" height="33">
<p align="left"><font face="Century Gothic"><input type="text" name="$adres" size="20"></font></td>
</tr>
<center>
<tr>
<td width="28%" height="25"><font size="2" face="Verdana">plaats:</font></td>
</center>
<td width="93%" colspan="2" height="33">
<p align="left"><font face="Century Gothic"><input type="text" name="$plaats" size="20"></font></td>
</tr>
<center>
<tr>
<td width="28%" height="25"><font size="2" face="Verdana">postcode:</font></td>
</center>
<td width="93%" colspan="2" height="33">
<p align="left"><font face="Century Gothic"><input type="text" name="$postcode" size="20"></font></td>
</tr>
<center>
<tr>
<td width="28%" valign="top" height="119"><font size="2" face="Verdana">Bericht:</font></td>
<td width="93%" colspan="2" height="119">
<p><textarea rows="5" name="$boodschap" cols="37"></textarea></td>
</tr>
<tr>
<td width="28%" height="26"> </td>
<td width="68%" height="26">
<p align="left"><font color="#FFFFFF" size="2" face="Verdana"><strong><input type="submit" name="B1" value="Verzenden" style="BORDER-LEFT-COLOR: #FFFFFF; BORDER-BOTTOM-COLOR: #FFFFFF; COLOR: white; BORDER-TOP-COLOR: #FFFFFF; BACKGROUND-COLOR: #08315A; BORDER-RIGHT-COLOR: #FFFFFFbackground-color: #FFFFFF; font-family: Verdana; font-size: 10 px; border-style: solid; border-color: #FFFFFF">
<input type="reset" name="B2" value="Overnieuw" style="BORDER-LEFT-COLOR: #FFFFFF; BORDER-BOTTOM-COLOR: #FFFFFF; COLOR: white; BORDER-TOP-COLOR: #FFFFFF; BACKGROUND-COLOR: #08315A; BORDER-RIGHT-COLOR: #FFFFFFbackground-color: #FFFFFF; font-family: Verdana; font-size: 10 px; border-style: solid; border-color: #FFFFFF"></strong></font></td>
<td width="25%" height="26">
<p align="right"></td>
</tr>
</table>
</div>
</form>
</center>
</body>
</html> |
---------------------
PHP:
1
| <? $Antwoord="Hier de tekst die je wilt sturen naar degene die jouw formulier heeft ingevuld"; $myemail="arjand@home.nl"; $myname="jouw naam, of website naam. Verschijnt als afzender in de email"; $onderwerp="Test van het mail formulier"; $naam="naam: $naam\n"; $telefoon="telefoon: $telefoon\n"; $email="email: $email\n"; $adres="adres: $adres\n"; $plaats="plaats: $plaats\n"; $postcode="postcode: $postcode\n"; $boodschap="boodschap: $boodschap\n"; $Date="Datum van aanvraag: " . date("Y-m-d H:i:s") . "\n"; mail("arjand@home.nl", "$onderwerp", "$Date $naam $telefoon $email $adres $plaats $postcode $boodschap", "From: $naam<$email>\nReturn-path: $email"); mail("$email", "$onderwerp", "$Antwoord", "From: $myname<$myemail>\nReturn-path: $myemail"); ?> |
--------------
ik krijg als foutmeldingen steeds:
Notice: Undefined variable: naam in C:\XITAMI\webpages\php\mail\mail.php on line 6
Notice: Undefined variable: telefoon in C:\XITAMI\webpages\php\mail\mail.php on line 7
Notice: Undefined variable: email in C:\XITAMI\webpages\php\mail\mail.php on line 8
Notice: Undefined variable: adres in C:\XITAMI\webpages\php\mail\mail.php on line 9
Notice: Undefined variable: plaats in C:\XITAMI\webpages\php\mail\mail.php on line 10
Notice: Undefined variable: postcode in C:\XITAMI\webpages\php\mail\mail.php on line 11
Notice: Undefined variable: boodschap in C:\XITAMI\webpages\php\mail\mail.php on line 12
Warning: Bad Message destination in C:\XITAMI\webpages\php\mail\mail.php on line 16
-----------------
Wie kan mij helpen dit dingetje wel goed te laten werken?