tuijian.asp

来自「实现一个用JSP、Servlet技术实现的小型物流网站系统。实现功能如下:管理员」· ASP 代码 · 共 28 行

ASP
28
字号
<% data_path="../../" 'ACC连接数据库路径,对SQL无效 %>
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/filesystem.asp"-->
<!--#include file="../../inc/safe.asp"-->
<%
dim userid,action
userid=replace_text(request("userid"))
action=replace_text(request("action"))
if userid="" then 
  response.Write("<script >alert('参数传递错误!');history.back(-1);</script>")
  response.End() 
end if
if userid<>"" and action<>"" then
set rst=server.CreateObject("adodb.recordset")
sqlt="select  * from wygkcn_corporation where id="&userid
rst.open sqlt,conn,1,3
if not rst.eof then 
rst("Uflag")=action
rst.update
rst.close
end if
response.Redirect(request.ServerVariables("HTTP_REFERER"))
end if




%>

⌨️ 快捷键说明

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