厦门团购,闪团网,拉手网,日团网,厦团网,E团网,零点团,易购乐

日志主页 | 链接 | 标签 | 留言 | 管理

分享厦门最新团购信息:

厦门团购信息大全
厦门易购乐yg6.cn,厦门团购网!

 

asp生成txt的例子

yaoee.com, 发表于:2009-04-20 09:57:17, 分类:IT知识 浏览( ) 评论( )  收藏这篇日志

<%
if request("action")="do" then
dim conn,connstring
fname="index1.txt"
nr1=request("name")
nr2=request("pass")
nr= "用户名:"&nr1+"           密码:"&nr2
Set fso = Server.CreateObject("Scripting.FileSystemObject")
filePath=server.mappath("/")
Set f = fso.CreateTextFile(filePath& "\" & fname)
f.WriteLine nr
f.close
end if
%>

<% if request("action")="do" then%>
<a href="index1.txt">点击这里查看</a>
<%end if%>


<form id="form1" name="form1" method="post" action="?action=do">
  <label>
  用户名
  <input name="name" type="text" id="name" />
  密码
  </label>
  <label>
  <input name="pass" type="text" id="pass" />
  </label>
  <label>
  <input type="submit" name="Submit" value="提交" />
  </label>
</form>
 


正在读取日志的评论数据,请稍后……
正在加载日志评论签写框,请稍后……
成员登录通道
正在载入成员登录通道...
BLOG 日志归档
BLOG 推荐日志
  • 暂时没有推荐日志
BLOG 站内搜索

BLOG 友情链接