最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp入门:asp如何保存数据
时间:2022-07-02 22:38:20 编辑:袖梨 来源:一聚教程网
asp入门:asp如何保存数据,我们会用到request来取得由post提交过来的数据进行保存,到数据库哦.下面我们就来看看实例教程吧.
先来看看提交的页面:
下面看看接收数据并保存的页面.
<%
Set fs = CreateObject("Scripting.FileSystemObject")
Folderpath=server.mappath("") & "/cgi-bin/messages143718"
Wcounter=Folderpath &"/counter.txt"
Set fs = CreateObject("Scripting.FileSystemObject")
if fs.FolderExists(Folderpath) then
Set a = fs.OpenTextFile(Wcounter)
hits = Clng(a.ReadLine)
hits = hits + 1
a.close
else
Set a = fs.CreateFolder(Folderpath)
hits=1
end if
Set a = fs.CreateTextFile(Wcounter,True)
a.WriteLine(hits)
a.Close
Set fs=nothing
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile(Folderpath & "" & hits & ".txt")
For Each x In Request.Form
a.WriteLine(x &": " & Request.Form(x))
Next
a.Close
Set a=nothing
Set fs=nothing
%>
Thanks for providing the requested information
I will contact you very soon.
相关文章
- 啵乐腐味官方2026最新版-啵乐官方漫画网页版极速下载 02-06
- 一耽网页版登录入口怎么打开最新版本-2026可访问的一耽网页版登录入口免费安装 02-06
- 斗破苍穹漫画免费阅读入口:全章节高清无删减资源点此直达 02-06
- 差差漫画-官方页面登录 02-06
- 一耽原耽app官网最新版本下载入口-一耽漫画高清完整版资源在线观看 02-06
- 差差漫画-免费高清登录页面 02-06