心理素质拓展活动总结:■一个HTML网页怎么保存输入筐中的内容生成一个TXT文件在服务器■

来源:百度文库 编辑:高校问答 时间:2024/04/28 15:18:12
就是一个HTML网页
内容:
俩个输入筐
一个按扭
功能:
点击按扭后把俩个输入筐中的内容存在同目录下的一个TXT文件里,?
注意:
不是覆盖保存,
谢谢把源代码发出来
我是菜鸟,
这个问题似乎很白痴

<meta charset=gb2312>
<% if request("aa")<>"" and request("bb")<>"" then
dim fso,f,forappending
forappending=8
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile(Server.Mappath("aa.txt"), forappending, True)
f.WriteLine request("aa")
f.WriteLine request("bb")
f.Close()
set f=nothing
set fso=nothing
response.redirect Request.ServerVariables("HTTP_REFERER")
else
%>
<form name="form1" method="post" action="">
<p>
<input name="aa" type="text">
</p>
<p>
<input name="bb" type="text">
</p>
<p>
<input type="submit" name="Submit" value="提交">
</p>
</form>
<%end if%>

楼上说的是ASP提交到aa.txt
而HTML好像还没有