一个web自动单页提交系统_PHP
时间:2021-07-01 10:21:17
帮助过:17人阅读
一个web自动单页提交系统
提交form:
Untitled Document 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
bgcolor="#006633">
$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 "递交成功
";
}
?>
返回