用户登陆后修改密码的问题
用户登陆后修改密码的问题
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>
请问问题出在哪?
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>
请问问题出在哪?
...全文
相关推荐
maven ,git ,node ,mysql 打包下载
apache-maven-3.5.2 Git-2.8.2-64-bit.exe mysql-5.5.28-winx64.msi node-v8.9.3-x64.msi
服务器项目部署详细示例文档
服务器项目部署详细示例文档
Docker CentOS7镜像制作[源码]
本文详细介绍了如何使用Docker制作多种CentOS7环境镜像,包括中文环境基础版、开发环境版及带MySQL的版本。内容涵盖Docker安装、国内镜像源配置、Dockerfile编写、容器启动与配置、基础服务安装(如SSH、JDK、Git、Maven、Nginx、Node.js等)、镜像提交到阿里云仓库等步骤。通过Docker容器化技术,开发者可以快速创建、测试和部署符合需求的CentOS7环境,实现环境隔离与快速迁移。文章还提供了具体命令和配置示例,适合需要定制化Docker镜像的开发者参考。
全栈开发环境工具[代码]
本文介绍了Java全栈开发工程师在实际项目中所需的环境及工具,包括后端开发工具如JDK、IDEA、MySQL、Redis等,前端开发工具如Node.js、VSCode、微信小程序开发者工具等,以及其他辅助工具如Git、Docker、Apifox等。文章提供了各工具的官方下载地址和安装教程,方便开发者快速搭建开发环境。同时,作者鼓励读者在评论区补充其他好用的工具或指出错误,以共同完善全栈开发工具链。
studion
studion


