Menu
This is stumping me.
What I want it to do is check that there is something in the content field. if not then it should not write out a comment to the file. The problem is that writes the blank comment form.
can anyone shed some light on this?
[CODE]if (isset($comment))
{
$newComment= “<P><a href=”mailto:$email”>$name</a> said on $today<br>$comment</P>”;
$theCommentFileName = $survey.”comments.inc”;
if (file_exists($theCommentFileName)){$FH = fopen($theCommentFileName, “a”);}
else{$FH = fopen($theCommentFileName, “x”);}
fwrite($FH,$newComment);
fclose($FH);