if (!$_POST[name] ||!$_POST[grade] || !$_POST[email] || !$_POST[title] || !$_POST[subject] ||
!$_POST[comments])
{
echo "<BR><BR><b><i>**You did not fill in all the required fields. Remember, your name is
required even if you are anonymous.</i></b>";
} else {
if(!eregi('^([._a-z0-9-]+[._a-z0-9-]*)@(([a-z0-9-]+\.)*([a-z0-9-]+)(\.[a-z]{2,3})?)$',
$email))
{
echo '<BR><br>Your email does not look like a valid email.'; } else {
if ($_POST[anony] == 2)
{
$msg = "PLEASE MAKE MY SUBMISSION ANONYMOUS.";
}
$msg .= "
$_POST[comments]";
echo "<BR><BR>Thank you, $_POST[name], for your submission!<BR>Your work has been
sent to the Literary and Arts Magazine.";
$recipent = "mystikalworld2002@yahoo.com";
$title = "Submission: $_POST[title]";
echo "Recipent: $recipent<BR> Title: '$title'<br>
Message: $msg<Br>Email: $_POST[email]";
mail($recipent, $title, $msg, "From: $_POST[name]<$_POST[email]>");
}
is there any immediate reason you see why this mail function does not work? It just doesn't show up in my inbox!