asaveip.asp

来自「视频点播系统」· ASP 代码 · 共 66 行

ASP
66
字号
<!--#include file="articleconn.asp"-->
<%
if Session("admin")<>"imoviejads" then
  response.redirect "login.asp"
end if
%>
<%if session("flag")>1 then
    response.write "<br><p align=center>您的操作权限不够!</p>"
    response.end
end if
%>
<%
   newpin=LCase(Request("newpin"))
   flag=Request("flag")
   manager=LCase(Request("manager"))
   
   submit=Trim(Request("submit"))
   
'//进行修改操作
   set rs = server.createobject("adodb.recordset")
   if submit="修改" then

'//修改用户密码      
	sql="select * from noip where id="&request("id")
	 rs.open sql,conn,1,3
	 rs("noip")=manager
	 rs("testok")=newpin
	 rs.update
	 rs.close
	 set rs=nothing
   
         conn.Close
         set conn=Nothing        

         response.redirect "adminip.asp"
   
    end if
    
'//进行删除操作

   if submit="删除" then
      
      sql="delete from noip where id="&request("id")
      
      conn.Execute sql
      
      conn.Close
      set conn=Nothing      
     
   response.redirect "adminip.asp"
   
   end if
%>
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>

<body>

</body>

</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?