📄 answerp.asp
字号:
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>answerp</title>
</head>
<body>
<%
function fs(fString)
if not isnull(fString) then
fString = replace(fString, ">", ">")
fString = replace(fString, "<", "<")
fString = Replace(fString, CHR(9), " ")
fString = Replace(fString, CHR(32), " ")
fString = Replace(fString, CHR(34), """)
fString = Replace(fString, CHR(39), "'")
fString = Replace(fString, CHR(13), "")
fString = Replace(fString, CHR(10) & CHR(10), "</P><P> ")
fString = Replace(fString, CHR(10), "<BR> ")
fString = fString + "<br/>"
HTMLEncode = fString
fs=fstring
end if
end function
ids=request.querystring("ids")
dim conn,connstr
connstr="Driver={sql server};UID=sa;PWD=sa;database=zikao;server=BILLGATES"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr
set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from liuyan where id='"&ids&"'"
rs.open sql,conn
if rs.eof then
response.write ids
else
session("ids")=ids
%>
<table border="1" width="531" height="431">
<tr>
<td height="42" width="63">主题</td>
<td height="42" width="452"><%=rs(1)%> </td>
</tr>
<tr>
<td height="71" width="63">内容</td>
<td height="71" width="452"><%
memo=rs(2)
memo=fs(memo)
response.write memo
%></td>
</tr>
<form action="answerpost.asp" method="post">
<tr>
<td height="217" width="63">回复</td>
<td height="217" width="452"><textarea rows="16" name="S1" cols="62"></textarea></td>
</tr>
<tr>
<td height="33" width="515" colspan="2">
<p align="center"><input type="submit" value="提交" name="B1">
<input type="reset" value="重置" name="B2"></td>
</tr>
</form>
<tr>
<td height="43" width="515" colspan="2"> </td>
</tr>
</table>
<%end if%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -