📄 xgok.asp
字号:
<%
if session("password")<>"" then
%>
<html>
<head>
<title>系统提示</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="site.css">
<style type="text/css">
<!--
body,td,th {
font-size: 14px;
color: #666666;
font-weight: bold;
}
body {
background-color: #99CC00;
}
a:link {
color: #FF0000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FF0000;
}
a:hover {
text-decoration: none;
color: #FF0000;
}
a:active {
text-decoration: none;
color: #FF0000;
}
-->
</style></head>
<body leftmargin="0" topmargin="5">
<!--#include file="conn.asp"-->
<%
'修改账号密码
c_username = Request("username")
c_password= Request("password")
SQLcmd = "update admin set "
SQLcmd = SQLcmd & "username='" & c_username & "',password='" & c_password & "' where id=1"
response.write "<table width='100%' border=0 cellspacing=0 cellpadding=0 height='100%'><tr><td>"
response.write "<br><br><table width=250 border=1 cellspacing=2 cellpadding=2 align=center bordercolorlight=7285CF bordercolordark=7285CF height=90 bgcolor=F2F2F2>"
response.write "<tr bordercolor=F2F2F2 bgcolor=F2F2F2 align=center> "
response.write "<td>修改成功!</td>"
response.write "</tr>"
response.write "<tr bordercolor=F2F2F2 bgcolor=F2F2F2 align=center> "
response.write "<td>请记住您新修改的账号和密码!</td>"
response.write "</tr>"
response.write "<tr bordercolor=F2F2F2 bgcolor=F2F2F2 align=center> "
response.write "<td><a href=login.asp><b>请重新登陆</b></a></td>"
response.write "</tr>"
response.write "</table>"
response.write "</td></tr></table>"
conn.Execute SQLcmd
%>
</body>
</html>
<%
else
Response.Redirect "login.asp" '否则转换到login.asp页面
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -