<%
Dim rs,sql
Set rs=server.CreateObject("adodb.Recordset")
sql="select * from 学生表 where 姓名='"&session("姓名")&"'"
rs.open sql,conn,1,3
Dim pass
pass=Trim(rs("密码"))
If Request.QueryString("action")="ok" Then
Dim userpass,userpass1,userpass2
userpass=Trim(Request.Form("userpass"))
userpass1=Trim(Request.Form("userpass1"))
userpass2=Trim(Request.Form("userpass2"))
If userpass<>"" and userpass1<>"" and userpass2<>"" Then
If userpass<>pass Then
call mygoto("原密码有误,请重新输入!","pass.asp")
Else If userpass1<>userpass2 Then
call mygoto("您两次输入的新密码不一致!","pass.asp")
Else
rs("密码")=userpass1
rs.update
rs.close
Set rs=nothing
call mygoto("您帐号以修改成功,请妥善保管您的用户名和密码","user.asp")
End If
End If
Else
call mygoto("请输入完密码再确定!","pass.asp")
End If
End If
%>
这样写对吗,点下按钮都没反应的
[此贴子已经被作者于2007-6-22 11:39:38编辑过]