\n $name
\n $comment\n
\n";
file_put_contents("comments.txt", $comment_post, FILE_APPEND|LOCK_EX);
$_SESSION['passcode'] = "";
}
function read_comments()
{
$comments = @file_get_contents("comments.txt");
return $comments === FALSE ? "" : $comments;
}
function comment_form()
{
$form_source = "What's on your mind?
\n";
$form_source .= "\n";
return $form_source;
}
?>