📄 postnew.asp
字号:
<!--#include file="opendb.asp"-->
<%
title=trim(request.Form("title"))
content=trim(request.Form("content"))
username=session("UserName")
creattime=date()+time()
StrSql = "INSERT INTO Forum (Title,Content,CreateTime,Username) Values ('"
StrSql = StrSql & title & "', '"
StrSql = StrSql & content & "', '"
StrSql = StrSql & creattime & "', '"
StrSql = StrSql & username & "' ) "
my_conn.Execute StrSql
%>
<!--#include file="closedb.asp"-->
<script language=vbscript>
msgbox "你的帖子已发表",48,"发表成功"
window.location="index.asp"
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -