here is the code
=============================================
<?php
include ("config.php");
if($your_password=="$password" && $your_name=="$username")
{
$your_date = date("M j, Y h:i:s");
$fp=fopen("./comments.dat", "a");
fputs($fp, "<tr><td>Posted by <a href=mailto:$your_email>$your_name</a> at $your_date</td></tr><tr><td>$your_comments</td></tr>");
fclose($fp);
$new = "<tr><td>Posted by <a href=mailto:$your_email>$your_name</a> at $your_date</td></tr><tr><td>$your_comments</td></tr>";
$f = fopen("comments.dat", "r");
$old = fread($f, filesize("comments.dat"));
fclose($f);
$new .= $old;
$f = fopen("comments.dat", "w");
fwrite($f, $new);
fclose($f);
";
}
else{
echo"Incorrect password.";
}
?>
the pass error is on line 26
test it out here
http://216.118.121.28/snewzdemo/newz1.php
post ther news here
http://216.118.121.28/snewzdemo/postsnewz1.php
asny help would be appreciated
thanks
cya
Sam Colebatch
sam@samcolebatch.com
http://www.samcolebatch.com