adAddSave.asp 705 B

123456789101112131415161718192021222324252627
  1. <%Session.CodePage=65001%>
  2. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  3. <!--#include file="../bdcommx/connxyz.asp"-->
  4. <%call log_chk()
  5. dim user,pwd,thelm,Tname,tel
  6. user=trim(request("UserName"))
  7. pwd=md5(trim(request("PassWord")))
  8. thelm=trim(request("thelm"))
  9. Tname=request("Tname")
  10. tel=request("tel")
  11. Set rs=Server.Createobject("Adodb.Recordset")
  12. sql="select * from adminx where adx_name='"&user&"'"
  13. rs.open sql,conn,1,3
  14. if not rs.eof and not rs.bof then
  15. call backurl("帐号已经存在!")
  16. else
  17. rs.addnew
  18. rs("adx_name")=user
  19. rs("adx_pass")=pwd
  20. rs("adx_lm")=thelm
  21. rs("adx_Tname")=Tname
  22. rs("adx_tel")=tel
  23. rs.update
  24. rs.close
  25. set rs=nothing
  26. end if
  27. response.Redirect("adMag.asp")%>