<%
dim t1
dim t2
dim t3
dim t4t1=request.form("t1")
t2=request.form("t2")
t3=request.form("t3")
t4=request.form("t4")
if request.form("t1")="" then
response.write "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
response.end
end ifif request.form("t2")="" then
response.write "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
response.end
end if
if request.form("t3")="" then
response.write "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
response.end
end if
if request.form("t4")="" then
response.write "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
response.end
end ifelement="********************************"
sj=now()
set fso=server.createobject("scripting.filesystemobject")
set fc=fso.openTextFile(server.mappath("zl.txt"),8,true)
fc.writeline (t1)
fc.writeline (t2)
fc.writeline (t3)
fc.writeline (t4)fc.writeline (sj)
fc.writeline (element)
fc.close
set fc=nothing
set fso=nothing response.write "<script>alert('提交成功,');window.history.go(-1);</script>"
response.Redirect "http://www.qq.com"
%>
dim t1
dim t2
dim t3
dim t4t1=request.form("t1")
t2=request.form("t2")
t3=request.form("t3")
t4=request.form("t4")
if request.form("t1")="" then
response.write "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
response.end
end ifif request.form("t2")="" then
response.write "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
response.end
end if
if request.form("t3")="" then
response.write "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
response.end
end if
if request.form("t4")="" then
response.write "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
response.end
end ifelement="********************************"
sj=now()
set fso=server.createobject("scripting.filesystemobject")
set fc=fso.openTextFile(server.mappath("zl.txt"),8,true)
fc.writeline (t1)
fc.writeline (t2)
fc.writeline (t3)
fc.writeline (t4)fc.writeline (sj)
fc.writeline (element)
fc.close
set fc=nothing
set fso=nothing response.write "<script>alert('提交成功,');window.history.go(-1);</script>"
response.Redirect "http://www.qq.com"
%>
解决方案 »
- WIN7 X64下的Apache+Mysql+Php配置
- 请问google或者baidu里面搜索的时候那种分页是一次把数据取完,还是一次取一部分?
- 得到当前页面的url的变量是什么来的?$REF_什么来的?
- php.exe应用程序错误["0×100b4d56"指令引用的"0×00000000"内存,该内存不能为"read"]这样的报错是怎么回事?
- 这段ASP查找替换代码,该如何用PHP改写呢?谢谢,急
- 截取字符问题。
- MySQL语句用ORDER BY排序后怎样提取第N到N+10条记录?
- 是否知道:php朋友请看页面超时,怎么做……
- js有关onclick的问题
- 求助 PHP只能传递数字,无法传递英文和字符
- 请教一个抓取新闻的一段正则
- 如何把内容里的 IMG提出出来处理好再存入变量里
$t1=$_POST["t1"];
$t2=$_POST["t2"];
$t3=$_POST["t3"];
$t4=$_POST["t4"];
if ($t1==""){
echo "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
exit;
}
if ($t2==""){
echo "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
exit;
}
if ($t3==""){
echo "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
exit;
}
if ($t4==""){
echo "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
exit;
}$content = ;
file_put_contents('zl.txt',"$t1\n$t2\n$t3\n$t4\n".date('Y-m-d H:i:s')."\n********************************\n",FILE_APPEND);
echo "<script>alert('提交成功,');window.history.go(-1);</script>"
$t1=$_POST["t1"];
$t2=$_POST["t2"];
$t3=$_POST["t3"];
$t4=$_POST["t4"];
if ($t1==""){
echo "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
exit;
}
if ($t2==""){
echo "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
exit;
}
if ($t3==""){
echo "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
exit;
}
if ($t4==""){
echo "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
exit;
}file_put_contents('zl.txt',"$t1\n$t2\n$t3\n$t4\n".date('Y-m-d H:i:s')."\n********************************\n",FILE_APPEND);
echo "<script>alert('提交成功,');window.history.go(-1);</script>"
if ($t1=="" || $t2=="" || $t3=="" || $t4==""){
echo "<script>alert('同学 不能留空!!');window.history.go(-1);</script>"
exit;
}
$content = ;
file_put_contents('zl.txt',"$t1\n$t2\n$t3\n$t4\n".date('Y-m-d H:i:s')."\n********************************\n",FILE_APPEND);
echo "<script>alert('提交成功,');window.history.go(-1);</script>"