I've 2 pages challenge.html and send.php. When I attempt to use my form to take and process info that will be sent via e-mail I get the following error.
(this is only half of the errors.. but the rest is the same stuff)
Notice: Undefined variable: sender_name in C:\Inetpub\finalphase\neverplaysober\v4\send.php on line 3
Notice: Undefined variable: sender_clanname in C:\Inetpub\finalphase\neverplaysober\v4\send.php on line 4
Notice: Undefined variable: sender_email in C:\Inetpub\finalphase\neverplaysober\v4\send.php on line 5
Notice: Undefined variable: sender_aim in C:\Inetpub\finalphase\neverplaysober\v4\send.php on line 6
Notice: Undefined variable: sender_date in C:\Inetpub\finalphase\neverplaysober\v4\send.php on line 7
Challenge.html (code)
-----------------------------------------------------------
<FORM method="POST" action="send.php">
<P>Your Name:<br>
<INPUT type="text" name="sender_name" size=30>
</p>
<P>Your Clans Name:<br>
<INPUT type="text" name="sender_clanname" size=30>
</p>
<P>Your E-Mail Address:<br>
<INPUT type="text" name="sender_email" size=30>
</p>
<P>Your AOL IM name:<br>
<INPUT type="text" name="sender_aim" size=30>
</p>
<P>What Day would you like the match to be?<br>
<INPUT type="text" name="sender_date" size=30>
</p>
<P>What time would you like the match to be?<br>
<INPUT type="text" name="sender_time" size=30>
</p>
<P>Game to be played:<br>
<select size="1" name="sender_game">
<option>JK2</option>
<option>HL-cs</option>
<option>HL-DoD</option>
<option>HL-tfc</option>
<option>RTCW</option>
<option>Battle Net</option>
<option>Sven-Coop</option>
</select>
</p>
<P>Number of Players?<br>
<INPUT type="text" name="sender_players" size=30>
</p>
<P>Map 1<br>
<INPUT type="text" name="sender_map1" size=30>
</p>
<P>Map 2<br>
<INPUT type="text" name="sender_map2" size=30>
</p>
<INPUT type="submit" value="Send This Form">
</FORM>
-----------------------------------------------------------
send.php (code)
-----------------------------------------------------------
<?php
$msg = "Sender Name:\t$sender_name\n";
$msg .= "Your Clans Name:\t$sender_clanname\n";
$msg .= "Sender E-Mail:\t$sender_email\n";
$msg .= "Your AOL IM name:\t$sender_aim\n";
$msg .= "What Day would you like the match to be?\t$sender_date\n";
$msg .= "What time would you like the match to be?\t$sender_time\n";
$msg .= "Game to be played:\t$sender_game\n";
$msg .= "Map 1\t$sender_map1\n";
$msg .= "Map 2\t$sender_map2\n";
$recipient = "venom@neverplaysober.com";
$subject = "Challenge NPS";
$mailheaders = "From: Never Play Sober Challenge Form <> \n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail($recipient, $subject, $msg, $mailheaders);
echo "<HTML><HEAD><TITLE>Form Sent!</TITLE></HEAD><BODY>";
echo "<H1 align=center>Thank You, $sender_name</H1>";
echo "<P align=center>Your feedback has been sent.</P>";
echo "</BODY></HTML>";
?>
------------------------------------------------------------
Link
(this is only half of the errors.. but the rest is the same stuff)
Notice: Undefined variable: sender_name in C:\Inetpub\finalphase\neverplaysober\v4\send.php on line 3
Notice: Undefined variable: sender_clanname in C:\Inetpub\finalphase\neverplaysober\v4\send.php on line 4
Notice: Undefined variable: sender_email in C:\Inetpub\finalphase\neverplaysober\v4\send.php on line 5
Notice: Undefined variable: sender_aim in C:\Inetpub\finalphase\neverplaysober\v4\send.php on line 6
Notice: Undefined variable: sender_date in C:\Inetpub\finalphase\neverplaysober\v4\send.php on line 7
Challenge.html (code)
-----------------------------------------------------------
<FORM method="POST" action="send.php">
<P>Your Name:<br>
<INPUT type="text" name="sender_name" size=30>
</p>
<P>Your Clans Name:<br>
<INPUT type="text" name="sender_clanname" size=30>
</p>
<P>Your E-Mail Address:<br>
<INPUT type="text" name="sender_email" size=30>
</p>
<P>Your AOL IM name:<br>
<INPUT type="text" name="sender_aim" size=30>
</p>
<P>What Day would you like the match to be?<br>
<INPUT type="text" name="sender_date" size=30>
</p>
<P>What time would you like the match to be?<br>
<INPUT type="text" name="sender_time" size=30>
</p>
<P>Game to be played:<br>
<select size="1" name="sender_game">
<option>JK2</option>
<option>HL-cs</option>
<option>HL-DoD</option>
<option>HL-tfc</option>
<option>RTCW</option>
<option>Battle Net</option>
<option>Sven-Coop</option>
</select>
</p>
<P>Number of Players?<br>
<INPUT type="text" name="sender_players" size=30>
</p>
<P>Map 1<br>
<INPUT type="text" name="sender_map1" size=30>
</p>
<P>Map 2<br>
<INPUT type="text" name="sender_map2" size=30>
</p>
<INPUT type="submit" value="Send This Form">
</FORM>
-----------------------------------------------------------
send.php (code)
-----------------------------------------------------------
<?php
$msg = "Sender Name:\t$sender_name\n";
$msg .= "Your Clans Name:\t$sender_clanname\n";
$msg .= "Sender E-Mail:\t$sender_email\n";
$msg .= "Your AOL IM name:\t$sender_aim\n";
$msg .= "What Day would you like the match to be?\t$sender_date\n";
$msg .= "What time would you like the match to be?\t$sender_time\n";
$msg .= "Game to be played:\t$sender_game\n";
$msg .= "Map 1\t$sender_map1\n";
$msg .= "Map 2\t$sender_map2\n";
$recipient = "venom@neverplaysober.com";
$subject = "Challenge NPS";
$mailheaders = "From: Never Play Sober Challenge Form <> \n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail($recipient, $subject, $msg, $mailheaders);
echo "<HTML><HEAD><TITLE>Form Sent!</TITLE></HEAD><BODY>";
echo "<H1 align=center>Thank You, $sender_name</H1>";
echo "<P align=center>Your feedback has been sent.</P>";
echo "</BODY></HTML>";
?>
------------------------------------------------------------
Link