【www.gdgbn.com--php入门】
if ($nickname=="") {
print "
";
}
else if ($key=="") {
print "
";
}
else if ($note=="") {
print "
";
}else{
print "";
$t = date(Y年m月d日);
$note = str_replace ( "<", "<", $note);
$note = str_replace ( ">", ">", $note);
$note = str_replace ( "n", "
", $note);
$main = "
$nickname
$note
";
$fdd=fopen("count.txt","r");
$cdd=fread($fdd,5);
$cdd++;
fclose($fdd);
$fdd=fopen("count.txt","w");
fwrite($fdd,$cdd);
fclose($fdd);
$ttt=".html";
$n=$cdd.$ttt;
$f = fopen($n,"a");
fwrite($f,$main);
fclose($f);
print "
";
}
?>