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

📄 topic_new.asp

📁 好东西~升级版本~校园 仿帝国wap 程序,有后台
💻 ASP
字号:
<%Response.ContentType = "text/vnd.wap.wml"
newtopic_name=LCase(request("newtopic_name"))
newtopic_content=LCase(request("newtopic_content"))
newtopic_type=session("forum_name_id")
Randomize '初始代随机数种子
findword=rnd() '产生随机数num1
findword=int(9999*findword)+564

'错误产生的预防
if len(reply_content)>250 then
error_message=uni("回复内容太长!")
end if
%>
<!--#include file="../myinc/dataconnect.inc"-->
<%'打开数据库
  
   if newtopic_content<>"" or newtopic_name<>"" then'内容不为空
                   set rs=server.createobject("adodb.recordset")                  
sql="insert into bbs_topic(topic_idnum,topic_name,topic_content,forum_type,topic_zuozhe)  values ('"&findword&"','"&newtopic_name&"','"&newtopic_content&"','"&newtopic_type&"','"&session("online_name")&"')"
   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="newtopic_name" value="" /><br/>
输入内容:<br/>
<input type="text" name="newtopic_content" value="" /><br/>
<do type="unknow" name="521" label="提交">

<go href="topic_new.asp" method="post" accept-charset="gb2312">
<postfield name="newtopic_name" value="$(newtopic_name)" />
<postfield name="newtopic_content" value="$(newtopic_content)" />
</go>
</do>
<br/>
<img src="../images/hotup.wbmp" alt=""/><a title="<%=uni("确定")%>"  href="topic_item.asp"><%=uni("返回上级")%></a><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 + -