📄 postanswer.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--include file="opendb.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>读贴子</title>
</head>
<body>
<%
id=request.Form("id")
title=trim(request.Form("title"))
content=trim(request.Form("content"))
username=session("UserName")
answertime=date()+time()
strsql="insert into forum (title,content,lastanswertime,username,
answerid)values('"
strsql=strsql & title &"','"
strsql=strsql & content & "','"
strsql=strsql & answertime & "','"
strsql=strsql & username & "','"
strsql=strsql & id & "')"
my_conn.execute strsql
%>
<%
strsql="select * from forum set answercount="& count &"where id="&id
my_conn.execute strsql
%>
<script language="vbscript">
msgbox"您回复的贴子已经发表 ",48,"发表成功"
window.location="index.asp"
</script>
</body>
</html>
<!--include file="closedb.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -