Hey there in the first place thank you very much in the first place, for the info you gave me,
I am using a script and i am storing the info into a .txt file this is what the script looks like:
U can have a look at the page itself www.doggpound.net/guestbook.php
<?
if ($POST["post"])
{
if ($POST["name"]=="")
{
}else{
$file=fopen("guestbook.txt", "a+");
$today = date("F j, Y, A");
$entry="Posted on: ";
$entry.=$today;
$entry.="\n";
$entry.="Name: ";
$entry.=$POST["name"];
$entry.="\n";
$entry.="Email: ";
$entry.="<a href='mailto:";
$entry.=$POST["email"];
$entry.="'>";
$entry.=$POST["email"];
$entry.="</a>";
$entry.="\n";
$entry.="Comments: ";
$entry.=$POST["comments"];
$entry.="\n";
$entry.="\n";
$entry.="\n";
$entry=stripslashes($entry);
fwrite($file,$entry);
fclose($file);
}
}
if ($POST["post"])
{
if ($POST["name"]=="")
{
echo "At least give your name";
}}else{
$file=fopen("guestbook.txt", "r");
$size=filesize("guestbook.txt");
$contents=fread($file, $size);
$contents=nl2br($contents);
fclose($file);
}
?></p>
<form action="guestbook.php" method="POST">
<p align="center">
Name::<input type="text" name="name"><br>
Email::<input type="text" name="email"><br>
Comments::<Textarea cols=50 rows=5 name="comments"></textarea><br>
<input type="submit" name="post" value="Sign">
<br><br>
<?$file=fopen("guestbook.txt", "r");
$size=filesize("guestbook.txt");
$contents=fread($file, $size);
$contents=nl2br($contents);
echo "Guestbook is currently $size bytes";?><br><br>
<?echo $contents;?>
And again thnx very much for your help really appreciated
Kind regards,
JiGgy