⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 topic_reply.asp

📁 skybird写的ASP的WAP网站源程序
💻 ASP
字号:
<%Response.ContentType = "text/vnd.wap.wml"
reply_content=LCase(request("reply_content"))
reply_zuozhe=session("online_name")
if reply_zuozhe="" then
reply_zuozhe="匿名人"
end if

'错误产生的预防
if len(reply_content)>250 then
error_message=uni("回复内容太长!")
end if
%>
<!--#include file="../myinc/dataconnect.inc"-->
<%'打开数据库
  
   if reply_content<>"" then'内容不为空
                   set rs=server.createobject("adodb.recordset")                  
sql="insert into bbs_reply(reply_zuozhe,reply_idnum,reply_content)  values ('"&reply_zuozhe&"','"&session("reply_idnum")&"','"&reply_content&"')"
   set rs=con.execute(sql)
   
'###########################################################
'需要修改地址,变为绝对地址。
Response.Redirect  "http://61.240.131.134/skybird/wapbbs/overreply.asp?reply_result=ok"
'####################################
else
error_message=uni("请输入回复内容。")
      
end if

%>

<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapfourm.org/DTD/wml_1.1.xml">
<wml>
<head>
<meta http-equiv='Cache-Control' content='max-age=0' />
</head>
 	<card id="index" title="<%=uni("天堂鸟论坛")%>" >
<p align="center">
<img src="life.png" alt=""/><%=uni("回复留言")%>
</p>
<p>
<%=error_message%><br/>
输入内容:<br/>
<input type="text" name="reply_content" value="" /><br/>
<do type="unknow" name="521" label="提交">
<go href="topic_reply.asp" method="post" accept-charset="gb2312">
<postfield name="reply_content" value="$(reply_content)" />
</go>
</do>
<br/>
<img src="../images/hotup.wbmp" alt=""/><anchor><%=uni("返回主题")%><prev/></anchor><br/>
<img src="../images/hotup.wbmp" alt=""/><a title="确定"  href="forum_item.asp">返回论坛</a><br/>
<img src="../images/skybird.wbmp" alt=""/><a title="确定"  href="../index.asp">返回首页</a><br/>
</p>
	</card>

</wml>
<% Function uni(Chinese)
  For i = 1 to Len (Chinese)
a=Mid(Chinese, i, 1)
uni=uni & "&#x" & Hex(Ascw(a)) & ";"
next
End Function
%>







⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -