Debug this short mail script for me so I can have a working applying page at http://member.clan-nwp.com/mopster/c...ild/apply.html

Here's the code:
Code:
function checkOK($field)
{
if (eregi("\r",$field) || eregi("\n",$field))
{
die("Invalid Input!");
}
}
$char=$_POST['char'];
checkOK($char);
$email=$_POST['email'];
checkOK($email);
$race=$_POST['race'];
checkOK($race);
$class=$_POST['class'];
checkOK($class);
$playtimewda=$_POST['playtimewda'];
checkOK($playtimewda);
$playtimewdb=$_POST['playtimewdb'];
checkOK($playtimewdb);
$playtimewea=$_POST['playtimewea'];
checkOK($playtimewea);
$playtimeweb=$_POST['playtimeweb'];
checkOK($playtimeweb);
$level=$_POST['level'];
checkOK($level);
$reasons=$_POST['reasons'];
checkOK($reasons);
$comments=$_POST['comments'];
checkOK($comments);
$to="codyownsyou@gmail.com";
$message="$char just filled out an application. \n\n
Email: $email\n\n
Race: $race\n\n
Class: $class\n\n
Level: $level\n\n
Playtime (Weekdays): $playtimewda to $playtimewdb\n\n
Playtime (Weekends): $playtimewea to $playtimeweb\n\n
Reasons for applying: \n$reasons\n\n
Additional Comments: \n$comments\n\n";
if(mail($to,"Application from \n$char\n",$message,"From: $email\n")){
echo "Thanks for your application.";
} else {
echo "There was a problem sending the Application. Please check that you filled in the form correctly.";
}