jwhy.asp
资源名称:wap.rar [点击查看]
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:2k
源码类别:
手机WAP编程
开发平台:
ASP/ASPX
- <%@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"/>
- <meta http-equiv="Cache-Control" content="max-age=0"/>
- <meta http-equiv="Expires" content="Mon, 1 Jan 1990 00:00:00 GMT"/>
- </head>
- <%
- '---接收数据----
- did=clng(request("did"))
- '---结束接收----
- %>
- <card title="加为好友" ontimer="gr_zl.asp?cnscu=<%=cnscu%>&id=<%=did%>">
- <timer value="10"/>
- <p>
- <%
- if did=myid then response.redirect "gr_zl.asp?cw=1&cnscu="&cnscu&"&id="&did&""
- set rs=Server.CreateObject("ADODB.Recordset")
- rspl="select * from cnscu_my where cstr(cid)="&myid&" and cstr(did)="&did
- rs.open rspl,conn,1,2
- if rs.eof then
- '---开始增加----
- rs.addnew
- if did<>"" then rs("did")=did
- if myid<>"" then rs("cid")=myid
- rs.update
- Else
- response.redirect "gr_zl.asp?cw=2&cnscu="&cnscu&"&id="&did&""
- end if
- rs.close
- set rs=nothing
- set rsl=Server.CreateObject("ADODB.Recordset")
- rspll="select * from tbxx"
- rsl.open rspll,conn,1,2
- rsl.addnew
- rsl("fnr")="会员"&myni&"(id:"&myid&")将您加为好友,希望你们多多联系哦"
- rsl("sid")=did
- rsl("fid")="0"
- rsl.update
- rsl.close
- set rsl=nothing
- %>
- 加好友成功,<br/>正在返回..<br/>
- ************<br/>
- <!--#include file="w.asp"-->
- </p>
- </card>
- </wml>