admin_vote_title.asp

来自「ASPSQL企业网络管理系统」· ASP 代码 · 共 30 行

ASP
30
字号
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
</head>
<%
if Request.Form("submit") <> "" then
	if Request.Form("action") = "insert" then
		'Response.Write("insert into vote_title (title) values ('" & Request.Form("title") & "')")
		session("conn").execute "insert into vote_title (title) values ('" & Request.Form("title") & "')",,adCmdText + adExecuteNoRecords
	else if Request.Form("action") = "edit" then
		session("conn").execute "update vote_title set title = '" & Request.Form("title") & "' where id = " & Request.Form("id"),,adCmdText + adExecuteNoRecords
	end if
	end if
%>
<script language="JavaScript" type="text/JavaScript">
window.alert("Operate vote title success!");
window.open("insert_vote_title.asp","_self");
</script>
<%
else
	Response.Write("nothing")
end if
%>
<body>
</body>
</html>

⌨️ 快捷键说明

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