📄 msgsave.asp
字号:
<!--#include file="HMconnection.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="inc/articlechar.inc"-->
<link rel="stylesheet" href="style/style.css" type="text/css">
<body bgColor=#d6d3ce
style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN: 0px">
<%
if request.form("rvauthor")="" then%>
<script language="javascript">
alert ( "对不起,您可能忘了填上您的大名啦!");
history.go(-1);
</script>
<%response.end
end if
if trim(request.form("rvcontent"))="" then%>
<script language="javascript">
alert ("对不起,评论内容不能为空!");
history.go(-1);
</script>
<%response.end
end if
if len(request.form("rvcontent"))>800 then%>
<script language="javascript">
alert( "对不起,评论内容不能大于800个字节")
history.go(-1);
</script>
<%response.end
end if
dim rvauthor,rvemail,reviewtitle
rvauthor=request.form("rvauthor")
review=htmlencode2(request.form("rvcontent"))
reviewtitle=request("rvname")
dim savrRS,savrSQL
set savrRS=server.createobject("adodb.recordset")
savrSQL="select * from adminMsg"
savrRS.open savrSQL,conn,1,3
savrRS.addnew
savrRS("msgTitile")=reviewtitle
savrRS("sendBy")=rvauthor
savrRS("content")=review
savrRS.update
savrRS.close
set savrRS=noting
set conn=nothing
%>
<script language="javascript" type="text/javascript">
alert ("发表成功,谢谢您的建议!");
window.close();
</script>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -