⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 password.asp

📁 心里在线咨询系统 怎么还有字数限制
💻 ASP
字号:
<!--#include file="../config/sys.asp"-->
<%a=check_session()
flog=Trim(Request.QueryString("flog"))
if flog="edit" then
	u_pwd=Trim(Request.Form("u_pwd"))
	new_pwd=Trim(Request.Form("new_pwd"))

sqlp = "select id from user_info where u_id='"&session("user_name")&"' and u_pwd='"&u_pwd&"'"
		set rsp=server.createobject("adodb.recordset")
		rsp.open sqlp,conn,2,1
			if not rsp.eof then
				sqlpp="update user_info  set u_pwd='"&new_pwd&"' where u_id='"&session("user_name")&"' and u_pwd='"&u_pwd&"'"
	conn.execute(sqlpp)
	msg="修改成功!"
	Else
	msg="修改失败!"
			end if
		rsp.close





end if

%><html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style.css" rel="stylesheet" type="text/css" />
</head>

<body><form method="POST" action="?flog=edit">
<%		sql="Select * From USER_INFO where u_id='"&session("user_name")&"' and u_pwd='"&session("user_password")&"'"
		set rs=server.createobject("adodb.recordset")
		rs.open sql,conn,1,1
%>
<TABLE style="TABLE-LAYOUT: fixed" height=100% cellSpacing=0 cellPadding=0 width="99%" border=0>
<TBODY>
<TR height=3 width="100%"> 
<TD> <TABLE style="TABLE-LAYOUT: fixed" height=3 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=1> 
<TD width=1></TD>
<TD width=1></TD>
<TD width=1></TD>
<TD bgColor=#DCDCDC></TD>
<TD width=1></TD>
<TD width=1></TD>
<TD width=1></TD>
</TR>
<TR height=1> 
<TD></TD>
<TD bgColor=#DCDCDC colSpan=2></TD>
<TD bgColor=#f7f8f9></TD>
<TD bgColor=#DCDCDC colSpan=2></TD>
<TD></TD>
</TR>
<TR height=1> 
<TD></TD>
<TD bgColor=#DCDCDC></TD>
<TD bgColor=#f7f8f9 colSpan=3></TD>
<TD bgColor=#DCDCDC></TD>
<TD></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR> 
<TD> <TABLE style="TABLE-LAYOUT: fixed" height="100%" cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR> 
<TD width=1 bgColor=#DCDCDC></TD>
<TD id=oINNER bgColor=#FFFFFF> 
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" height="100%">
					<tr>
						<td height="24" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: dotted; border-bottom-width: 1px" colspan="3">
						<font color="#999999"><b>&nbsp;&nbsp;&nbsp; 密码修改</b></font></td>
					</tr>	<tr>
		<td width="99%" align="right" colspan="2">
		<p align="center"><font color="#FF0000"><%=msg%></font></td>
	</tr>
	<tr>
		<td valign="top">
		<table border="0" width="100%" id="table2">
			<tr>
		<td width="47%" align="right" height="24">登陆ID:</td>
		<td align="left" width="52%"><%=session("user_name")%></td>
			</tr>
			<tr>
		<td width="47%" align="right">原密码:</td>
		<td align="left" width="52%">
									<input type="password" name="u_pwd" size="29" class="InputText"></td>
			</tr>
			<tr>
		<td width="47%" align="right">新密码:</td>
		<td align="left" width="52%">
									<input type="password" name="new_pwd" size="29" class="InputText"></td>
				</tr>
				<tr>
					<td height="24"> </td>
					<td height="24"> </td>
				</tr>
				<tr>
					<td colspan="2" height="24">
					<p align="center">
									<input type="submit" value="修改" name="B1" class="button1"></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</TD>
<TD width=1 bgColor=#DCDCDC></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR height=3 width="100%"> 
<TD> <TABLE style="TABLE-LAYOUT: fixed" height=3 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=1> 
<TD width=1></TD>
<TD width=1 bgColor=#DCDCDC></TD>
<TD width=1 bgColor=#f7f8f9></TD>
<TD bgColor=#f7f8f9></TD>
<TD width=1 bgColor=#f7f8f9></TD>
<TD width=1 bgColor=#DCDCDC></TD>
<TD width=1></TD>
</TR>
<TR height=1> 
<TD></TD>
<TD bgColor=#DCDCDC colSpan=2></TD>
<TD bgColor=#f7f8f9></TD>
<TD bgColor=#DCDCDC colSpan=2></TD>
<TD></TD>
</TR>
<TR height=1> 
<TD colSpan=3></TD>
<TD bgColor=#DCDCDC></TD>
<TD colSpan=3></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE></form><%rs.close%>

</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -