an easy little guestbook that can be viewed and edited! All you need to do is make a file called comment.txt... This part only writes into the guestbook, it does not, i repeat does not display it in anyway! and you also have to set the CHMOD to 777
<form action="<? $PHP_SELF ?>" method="post">
<br><input type="text" name="name" value="Name"><br>
<textarea type="text" name="comm">
Add Your Comment
</textarea><br>
<input type="submit" value="Add">
<?
$date = date("d.m.Y");
if (!isset ($comm) && ($name)){
$fp = fopen("comment.txt","a+");
fwrite($fp,nl2br("<meta http-equiv=Content-Language content=hr><table border=1 width=276 height=16><td width=128 height=4>Name:$name</td><td width=132 height=4>Date:$date</td><tr><td width=266 height=9 colspan=2>$comm</td></tr></table><br>"));
fclose($fp);
}
?>
Messages:
<?
readfile ("comment.txt");
?>