the error is a notice and dosent affect the running of the script
its telling you that a var you checking hasnt been set
it should also give a line number so you should be able to find which var it is
it probably this line
$comments = $_POST["comments"];
as its the first and the form hasnt been submitted $post will not be set
best thing to do is an isset
if (isset($_POST['comments']))
{
$comments = $_POST["comments"];
}
else
{
$comments = NULL;
}