
1个回答
2017-11-23 · 知道合伙人互联网行家
关注

展开全部
<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%>
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询