Let me start off by saying that this is my first time using PHP. I'm trying to create an email form, but I keep getting the following errors when its submitted. I understand what the first two error messages mean, but I'm not sure about the last two.
Notice: Undefined variable: message in C:\Inetpub\wwwroot\vcudeltachi\rush\sendmail.php on line 3
Notice: Undefined variable: email in C:\Inetpub\wwwroot\vcudeltachi\rush\sendmail.php on line 3
Warning: Server Error in C:\Inetpub\wwwroot\vcudeltachi\rush\sendmail.php on line 3
Warning: Cannot add header information - headers already sent by (output started at C:\Inetpub\wwwroot\vcudeltachi\rush\sendmail.php:3) in C:\Inetpub\wwwroot\vcudeltachi\rush\sendmail.php on line 4
Here is the code for my form.
<html>
<body>
<FORM method=post action="sendmail.php">
Email: <INPUT name="email" type="text"><br>
Message:<br>
<TEXTAREA name="message">
</textarea><br>
<input type=submit>
</FORM>
</body>
</html>
Here is the code for my sendmail.php script.
<?
mail( "foster_dchi@hotmail.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.vcudeltachi.org" );
?>
Can anyone give me a hand with this?