/bbs/xh.asp代码页
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><?xml version="1.0" encoding="utf-8"?>
<%response.buffer=true%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> 
<!--#include file="conn.inc"-->
<!--#include file="cnscucsb.asp"-->
<wml><%
'====================================================================
' 请你保留这段说明,这并不会影响你的速度.   电脑交流:http://www.cnscu.cn
' 程序制作:横云			  掌上校园收倾心整理收集于互联网,感谢你的支持!
' 升级时间: 2008-2-5  		主页地址:HTTP://wap.cnscu.cn
' E-Mail: cnscu@126.com   	客服QQ:554904632 QQ群:30493504 QQ群2:46659883
'====================================================================
%> <head>
<meta http-equiv='Cache-Control' content='no-cache'/>
</head>
<%
'---接收数据----
id=request.QueryString("id")
ltid=request.QueryString("ltid")
tid=request.QueryString("tid")
sid=request("sid")
'---结束接收----
%>
<card title="赠送鲜花" ontimer="lt_view.asp?cnscu=<%=cnscu%>&amp;tid=<%=tid%>&amp;ltid=<%=ltid%>&amp;page=1">
<timer value="10"/>
<p>
<%
'---读取数据----
set rs=Server.CreateObject("ADODB.Recordset")
rspl="select * from lt_xh where tid="&tid
rs.open rspl,conn,1,2
if rs.recordcount<>0 then 
'---错误跳转----
if rs("sid")=myid then response.redirect "lt_view.asp?cw=3&cnscu="&cnscu&"&ltid="&ltid&"&tid="&tid&""
else
'---增加总数----
  sql="update lttz set x=x+1 Where CStr(id)='" & tid & "'"
  conn.Execute(sql)
'---开始增加----
rs.addnew
if tid<>"" then rs("tid")=tid
if myid<>"" then rs("sid")=myid
'---结束增加----
rs.update
'---关闭数据----
end if
rs.close
set rs=nothing
%>
谢谢您的鲜花,<br/>正在返回..
</p>
</card>
</wml>
字母检索
回到顶部