editok.asp

来自「wapgo网址导航整站源码,WAP源码,更多登陆http://xywap.cn」· ASP 代码 · 共 35 行

ASP
35
字号
<%@ LANGUAGE="VBSCRIPT" %>
<%option explicit%>
<%Dim ids,ClassName,order,rs,rsstr%>
<!--#include file="conn.asp"-->

<%
if session("admin")="" then
response.redirect "admin.asp"
end if
ids=request.form("ids")
ClassName=request.form("ClassName")
order=request.form("order")

set rs=Server.CreateObject("ADODB.Recordset")
rsstr="select * from [class] where ClassID=" & ids
rs.open rsstr,conn,1,2

if ClassName<>"" then rs("ClassName")=ClassName
if order<>"" then rs("ClassID")=order
rs.update

rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<html>
<head>
<title>修改成功</title>
<meta http-equiv="refresh" content='2; URL=show.asp'>
</head>
<body>
<p align="center"><b>栏目编辑成功!</b></p>
</body>
</html>

⌨️ 快捷键说明

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