最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
向记事本里写入数据、一个修改密码的判断方法
时间:2022-06-30 10:19:18 编辑:袖梨 来源:一聚教程网
<%@language="Vbscript"%>
<% Response.Expires=0 %>
<% if Session("fz_login") = "8" then %>
<%
if Request.ServerVariables("HTTP_METHOD")="POST" And checkme<>"true" then
username=Request.Form("username")
password=Request.Form("password")
set fs=server.CreateObject("Scripting.FileSystemObject")
Set f = fs.OpenTextFile(server.MapPath("userpw.asp"), 2, True)
f.writeline "<%"
f.writeline "P_username=" & chr(34) & username & chr(34)
f.writeline "P_password=" & chr(34) & password & chr(34)
f.writeline chr(37) & ">"
f.close
set f=nothing
set fs=nothing
session("logusername")=username
session("logpassword")=password
edit_ok
end if
%>
<%sub edit_ok()%>
<%end sub%>
<% Response.Expires=0 %>
<% if Session("fz_login") = "8" then %>
<%
if Request.ServerVariables("HTTP_METHOD")="POST" And checkme<>"true" then
username=Request.Form("username")
password=Request.Form("password")
set fs=server.CreateObject("Scripting.FileSystemObject")
Set f = fs.OpenTextFile(server.MapPath("userpw.asp"), 2, True)
f.writeline "<%"
f.writeline "P_username=" & chr(34) & username & chr(34)
f.writeline "P_password=" & chr(34) & password & chr(34)
f.writeline chr(37) & ">"
f.close
set f=nothing
set fs=nothing
session("logusername")=username
session("logpassword")=password
edit_ok
end if
%>
<%sub edit_ok()%>
<%end sub%>