一聚教程网:一个值得你收藏的教程网站

热门教程

向记事本里写入数据、一个修改密码的判断方法

时间: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%>