?? replysave.asp
字號:
<!--#include file="session.asp"-->
<!--#include file="conn.asp"-->
<%
if request.form("content")="" then
response.write"<script language=javascript>alert('評論內(nèi)容必須填寫');this.location.href='javascript:history.go(-1)';</script>"
response.end
end if
function html(constring)
constring=replace(constring,CHR(13),"")
constring=replace(constring,CHR(10),"<br>")
constring=replace(constring,CHR(10)&CHR(10),"</p><p>")
html=constring
end function
set rs=server.createobject("adodb.recordset")
sql="select * from pl where id="&request("id1")
rs.open sql,conn,3,3
rs("reply")=html(trim(request("content")))
rs("check")=true
rs.update
response.write"<script language=javascript>alert('該條評論已經(jīng)回復');this.location.href='comment.asp';</script>"
rs.close
set rs=nothing
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -