<?
}else{
if(isset($comment))
{
$comment=stripslashes(strip_tags($comment));
$gbfile="$comment".$gbfile;
fclose($txt);
$txt=fopen("file.gb","r+w");
fwrite($txt,$gbfile);
}
echo "<font face='Verdana, Arial, Helvetica, sans-serif' size='2'>Thanks for editing this page! Click [<A href="/panel.php'>here</a>] to return to the administrative panel.</a>";
fclose($txt);
}
?>
Something in that is cause the information that I submit using my form to just be added to the text file as opposed to replacing it totally, which is what I want it to do. How is it that I use that to empty the text file and replace it with what I submit with the for? I know it must be possible.