edit_article_action.asp

来自「blog 又搭工」· ASP 代码 · 共 33 行

ASP
33
字号
<!--#include file="conn.asp"-->
<!--#include file="UBBencode.ini"-->
<!--#include file="textencode.ini"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
	<%		dim articleid
			dim title,body
			title=trim(request.Form("title"))
			body=trim(request.Form("Content"))
			articleid=request.querystring("articleid")
			classid=request.Form("classname")
			dim articleRs,articleSql
			set articleRs=server.CreateObject("adodb.recordset")
			articleSql="select * from article where articleid="&articleid
				articleRs.open articleSql,db,1,2
				articleRs("title")=title
				articleRs("body")=body
				articleRs("classid")=classid				
				'articleRs("subdate")=now()
			articleRs.update	
			response.redirect "../ok.html"
			articleRs.close
			set articleRs=nothing
			set db=nothing
		%>
</body>
</html>

⌨️ 快捷键说明

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