PHP:
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
| <? if ( $_SERVER['REQUEST_METHOD'] == 'POST') { $aError = array(); if ( $_POST['sNaam'] == "" ) { $aError[] = "naam invullen please"; } if(empty($_POST['sMail']) || !eregi ( '@',$_POST['sMail'] ) || !eregi ( '.',$_POST['sMail'] ) || eregi ( ' ',$_POST['sMail'] ) ) { $aError[] = 'Uw heeft uw emailadres niet ingevult'; } if ( $_POST['sComment'] == "" ) { $aError[] = "bericht invullen please"; } if ( count($aError) == 0 ) { $sBricht = htmlspecialchars ( addslashes ( $_POST['sComment'] ) ); mail("info@rjsmedia.nl", "Contact Formulier", $sBericht); echo "Uw bericht is verzonden"; } else { for($i = 0; $i < count($aError); $i++) { ?> <table class="tekst"> <tr> <td> <?=$aError[$i];?> </td> </tr> </table> <?php } } } else { ?> <table width="100%" border="0"> <form name="form" method="post"> <tr> <td width="20%">Naam:</td> <td width="80%"><input type="text" name="sNaam" size="30"></td> </tr> <tr> <td width="20%">E-Mail:</td> <td width="80%"><input type="text" name="sMail" size="30"></td> </tr> <tr> <td width="20%">Comment:</td> <td width="80%"><textarea name="sComment" rows="8" cols="60"></textarea></td> </tr> <tr> <td width="100%" colspan="2"><input type="reset" value="Wis"> <input type="submit" name="submit" value="Verzend"></td> </tr> </form> </table> <br /> <? } ?> |
Als ik een bericht verzend komt hij wel aan alleen ik zie geen tekst
Kan iemand mij helpen ?