updatauser.asp
上传用户:xzjhbl
上传日期:2021-05-23
资源大小:397k
文件大小:1k
源码类别:

教育系统应用

开发平台:

HTML/CSS

  1. <!--#include file="conn.asp"-->
  2. <%
  3. dim user,password,score,kaohao
  4. kaohao=session("id")
  5. if kaohao<>"" then
  6. password=request.Form("psw")
  7. user=request.Form("user")
  8. score=request.Form("score")
  9. set rs=server.createobject("adodb.recordset")
  10. cmd="select * from userlogin where kaohao='"&kaohao&"'"
  11. rs.open cmd,conn,1,3
  12. rs("user")=user
  13. rs("passwd")=password
  14. rs("score")=score
  15. 'rs("kaohao")=kaohao
  16. rs.update
  17. response.Write("<script>alert('考生信息修改成功!');window.location.href('Manageuser.asp')</script>")
  18. else
  19. response.Write("<script>alert('未选择考生!');window.location.href('Manageuser.asp')</script>")
  20. end if
  21. %>