📄 comment_save.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="char.asp"-->
<link rel="stylesheet" type="text/css" href="img/css.css">
<%
dim id,mailX,CommentX
If IsEmpty(request("id")) Then
response.write "Sorry ,the product is not found"
End If
id=request("id")
set rs=conn.execute("select * from hw where hw_id="&id&"")
if rs.bof and rs.bof then
response.write "Sorry ,the product is not found"
End If
rs.close
set rs=nothing
mailX=replace(trim(request("MailX")),"'","")
CommentX=replace(trim(Request("CommentX")),"'","")
if mailX="" or CommentX="" then
response.write "Invalid entered. Please try again."
else
set rs=nothing
CommentX = HTMLEncode(CommentX)
conn.execute("insert into Comment(dataid,mailX,CommentX) values ('"&id&"','"&mailX&"','"&CommentX&"')")
Successstr="Thank you!"
Successbox(Successstr)
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -