用户登陆后修改密码的问题

7415004 7415004 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
用户登陆后修改密码的问题
edit.asp ----------->
<%session("userid")=userid%>
<%session("userpwd")=userpwd%>
<!--#include file="dbconn.inc"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改密码</title>
<style type="text/css">
td{font-size:9pt}
a:link,a:visited,a:actived{text-decoration:underline;color="#0000ff"}
a:hover{text-decoration:underline;color="#ff0000"}
</style>
</head>
<%
userid=request("userid")
userpwd=request("userpwd")
sql="select * from t_kfqy_user where userid='"+userid+"' and userpwd='"+userpwd+"'"
set rs=conn.execute(sql)
%>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table border="0" width="776" cellspacing="0" cellpadding="0" align="center" >
<tr>
<td width="100%" style="padding-left: 30px">
<br>

<form name="form1" method="post" action="editpwdsave.asp?userid=<%=rs("userid")%>">
<table border="0" width="618" cellspacing="1" cellpadding="4" style="border-left: medium none; border-right: medium none; border-top: 1px none rgb(255,188,155); border-bottom: 1px none rgb(255,255,255); margin-left: 16px; margin-top: 10px; padding-left: 4px" bgcolor="#120506" align="center">
<tr bgcolor="#FFFFFF">
<td height="30" colspan="2">
<div align="center">
<center>
<p><font color="#FFFFFF"><b><font color="#FFFFFF"><b><font color="#000000">修改</font></b></font><font color="#000000">密码</font></b></font>
</center>
</div>
</td>
</tr>
<tr>
<td width="107" height="30" bgcolor="#FFFFFF" align="center">
<div align="left">
<p><font color="#000000">用户名:</font>
</div>
</td>
<td width="492" height="30" bgcolor="#FFFFFF" align="center">
<div align="left">
<p><font color="#000000"> <%=rs("userid")%> </font>
</div>
</td>
</tr>
<tr>
<td width="107" height="30" bgcolor="#FFFFFF" align="center">
<div align="left">
<p><font color="#FF0000">*<font color="#000000">新</font></font><font color="#000000">密码:</font>
</div>
</td>
<td width="492" height="30" bgcolor="#FFFFFF" align="center">
<div align="left">
<p>
<input type="password" name="userpwd" size="30">
</div>
</td>
</tr>
<tr>
<td width="107" height="30" bgcolor="#FFFFFF" align="center">
<div align="left">
<p><font color="#FF0000">*</font><font color="#000000">确认密码:</font>
</div>
</td>
<td width="492" height="30" bgcolor="#FFFFFF" align="center">
<div align="left">
<p>
<input type="password" name="pwd_c" size="30">
</div>
</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" colspan="2" align="center">
<div align="left">
<p align="center">
<input type="submit" value="修 改" name="submit" style="font-size: 9pt">
       
<input type="reset" value="清 除" name="q" style="font-size: 9pt">
</div>
</td>
</tr>
</table>
</form>
 
<p align="center">
</td>
</tr>
</table>
</body>
</html>

editsave.asp ------------------->
<!--#include file="dbconn.inc"-->
<html>
<head>
<title>修改密码 </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
p,td,div{font-size:9pt}
</style>
</head>
<%userid=request("userid")
userpwd=request("userpwd")
pwd_c=request("pwd_c")
sql="update t_kfqy_user set userpwd='"+userpwd+"',pwd_c='"+pwd_c+" where userid='"+userid&"'"
set rs=conn.execute(sql)

%>
<body bgcolor="#FFFFFF" link="#0000FF" vlink="#FF0000">
<p> </p><table border="0" width="200" cellspacing="0" cellpadding="0" style="padding-left: 10px" align="center">
<tr>
<td width="100%" style="padding-left: 30px"><font color="#FF0000" size="+1">修改成功!<br>
<br>
<a href="#" onclick="window.history.go(-1)">点击这里返回!</a></font></td>
</tr>
</table>
</body>
</html>


请问问题出在哪?

...全文

相关推荐

评论 7
收藏 已收藏
分享
返回顶部
7415004
ASP 28,400 成员 356,938 内容