【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 = "

Untitled Document






$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 "

递交成功
";


}
?>





返回





Untitled Document





标题:




关键字:






正文:











本文来源:http://www.gdgbn.com/jiaocheng/24982/