CopyRight By KeYu Computer WorkRoom 2001-2002</p> </body> </html>
2、后台控制文件page.asp <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <body bgcolor="#FFFFFF" text="#000000"> <%vname=request("name") vpass=request("pass") vrpass=request("rpass") vemail=request("email") %> <% if request.form("name")="" then response.write "错误提示:请输入用户名!" response.end end if if request.form("pass")="" then response.write "错误提示:请输入口令!" response.end end if if request.form("pass")<>request.form("rpass") then response.write "错误提示:两次口令不相符!" response.end end if if request.form("email")="" then response.write "错误提示:必须输入你的正确EMAIL!" response.end end if %> <%set myconn=server.createobject("ADODB.CONNECTION") dbpath=server.mappath("db.mdb") myconn.open "driver={Microsoft access driver (*.mdb)};dbq="&dbpath SQL="select * from hostname where 用户名=''"&vname&"''" set list=myconn.execute(sql) %> <% if list.eof then%> <% set rs=server.createobject("ADODB.RecordSet") rs.Open "hostname", myconn, adOpenDynamic, 3 rs.addnew rs("用户名")=vname rs("密码")=vpass rs("邮箱")=vemail rs.update rs.close
Set myfileobject=server.createobject("scripting.filesystemobject") myfileobject.createfolder("e:/club/"&vname) set afile=myfileobject.getfile("e:/club/person.htm") afile.copy "e:/club/"&vname&"/index.htm"
set afile=myfileobject.getfile("e:/club/line113.gif") afile.copy "e:/club/"&vname&"/line113.gif"
set afile=myfileobject.getfile("e:/club/bg11.gif") afile.copy "e:/club/"&vname&"/bg11.gif"
set afile=myfileobject.getfile("e:/club/c24.gif") afile.copy "e:/club/"&vname&"/c24.gif"