code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| <? echo " <form method='post' action=verzenden2.php> <dir><table><tr> <td><font color=\"#1C75A8\" size=\"2\">Name:</td><td align=right><input type='text' name='name' value='' size=\"30\"> </td></tr><tr> <td><font color=\"#1C75A8\" size=\"2\">Mail:</td><td align=right><input type='text' name='mail' value='' size=\"30\"> </td></tr><tr> <td><font color=\"#1C75A8\" size=\"2\">Your information:</td><td><textarea cols='30' rows='7' name=bericht></textarea> </td></tr><tr> <td><font color=\"#1C75A8\" size=\"2\"></td><td align=right><input type=submit value=send> </td></tr><tr valign=top> <input type='hidden' name='status' value='k'> </tr> </table> </form>"; ?> |
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| <?
if($status == "k"){
if (($name) && ($mail) && ($bericht)){
echo "[ <font color=#00ff00><b>Mail is send</b></font>]<br><br>";
$me = "rdhaar@aplusprofessional.nl";
$subject="blabla";
$body=" $bericht ";
mail($me, $subject, $body);
} else {
echo "[ <font color=#ff0000><b>Mail is not send</b> </font>] <font color=#ff0000>, probably because you left a field open <BR>
please make sure you fill in all fields <br>
Thank you<br><br></font> ";
}
}
?> |
krijg deze foutmelding
Notice: Undefined variable: status in ***verzenden2.php on line 2
hoe los ik dit op ?