hi,
i think i have the same problems you've had,
can you please send me your php file, please....
here's is my script but i don't really know what the problem is:
<?php
$Name = ereg_replace ("[^A-Za-z0-9 ]", "", $Name);
$Email = ereg_replace ("[^A-Za-z0-9 \@\.\-\/\']", "", $Email);
$Comments = ereg_replace ("[^A-Za-z0-9 \@\.\-\/\']", "", $Comments);
$Website = eregi_replace ("http://", "", $Website);
$Website = ereg_replace ("[^A-Za-z0-9 \@\.\-\/\'\~]", "", $Website);
$Name = stripslashes ($Name);
$Email = stripslashes ($Email);
$Website = stripslashes ($Website);
$Comments = stripslashes ($Comments);
if ($Submit == "Yes") {
$filename = "GuestBook.txt";
$fp = fopen ( $filename,"r");
$OldData = fread ($fp, 80000);
fclose ( $fp );
$Today = (date ("l dS of F Y ( h:i:s A )",time()));
$Input = "Name: <b>$Name</b><br>Email: <b><u><a href=\"mailto:$Email\">$Email</a></b></u><br>
Website: <b><u><a href=\"http://$Website\" target=\"_blank\">$Website</a></b></u><br>Comments:
<b>$Comments</b><br><i><font size=\"-1\">Date: $Today</font><br><br>.:::.";
$New = "$Input$OldData";
$fp = fopen ( $filename,"w");
fwrite ($fp, $New, 80000);
fclose ( $fp );
}
$filename = "GuestBook.txt";
$fp = fopen ( $filename,"r");
$Data = fread ($fp, 80000);
fclose ( $fp );
$DataArray = split (".:::.", $Data);
$NumEntries = count ($DataArray) - 1;
print "&TotalEntries = $NumEntries &NumLow = $NumLow &NumHigh = $NumHigh &Guest Book=";
for ($n = $NumLow; $n < $NumHigh; $n++) {
print "$DataArray[$n]";
if (!$DataArray[$n]) {
Print "<br><br><b>No More entries</b>";
exit;
}}
?>