edit_plan_action.asp

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

ASP
31
字号
<!--#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 planid
			dim title,body
			title=trim(request.Form("title"))
			body=trim(request.Form("body"))
			planid=request.querystring("planid")
			dim articleRs,articleSql
			set articleRs=server.CreateObject("adodb.recordset")
			articleSql="select * from plan where planid="&planid
				articleRs.open articleSql,db,1,2
				articleRs("title")=title
				articleRs("body")=body
				'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 + -
显示快捷键?