,,,

,
"); if (get_magic_quotes_gpc()) { $message = stripslashes($message); $name = stripslashes($name); } # deals with the name part of the form if (strlen($name) == 0) { $name = "anonymous"; } # deals with email part of the form - replace text with image tag if you wish if ($email && strlen($email) > 5 && stristr($email, "@")) { $message = "email $message"; } # deals with url part of the form - replace text with image tag if you wish if (strlen($url) > 7) { if (substr($url, 0, 7) != "http://") $url = "http://$url"; $message = "www $message"; } # formats the message in HTML, adds date $message = ereg_replace("\r\n\r\n", "

\n

", $message); $date = date("[M j, H:i]"); $message = "

$date $name $message

"; # writes the message to a file in the comments directory $path= "/path/to/public_html/comments/" . $comment . ".comment"; $fp = fopen ("$path", "a"); fwrite ($fp, $message . "\n"); fclose ($fp); // chmod ($path, 0664); } # reads the comment file @readfile(("comments/" .$comment. ".comment")); ?>
name:

email:

url:

comment: