User: " . $names;
if($email_address != null)
$guest_string = $guest_string . ", " . $email_address . " wrote on " . $date . "";
if($comments != null)
{
stripslashes($comments);
$guest_string = $guest_string . ",Said: " . $comments . "
\n";
}
$written=fwrite($fp,$guest_string);
fclose($fp);
$contents=file("guestcomments.txt");
for($i=0; $i < count($contents); $i++)
{
$fields_array=explode(",",$contents[$i]);
for($j=0; $j < count($fields_array); $j++)
{
echo $fields_array[$j] . "
";
}
echo "
"; } ?>