一个web自动单页提交系统
提交form:
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″>
<body bgcolor=”#006633″>
标题: |
关键字: |
正文:
|
<input type="reset"
value=”重写”> |
php处理程序:
<style type=”text/css”>
<!—ecms
.{ font-family: “宋体”; font-size: 9pt;color:#000000}
–>
</style>
<body bgcolor=#cccccc>
<?
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 = ”
<meta NAME=”key” CONTENT=$key>
<meta NAME=”name” CONTENT=$nickname>
<body bgcolor=”#E1F0E9″>
<table width="700" border="0" align="center" cellspacing="1" cellpadding="0"
bgcolor=”#006633″
搞gaodaima代码
>
“;
$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 “递交成功
“;
}
?>
返回