页面导航: 首页网络编程ASP编程应用技巧 → 正文内容

asp WAP获取手机终端信息的一段代码

发布:dxy 字体:[增加 减小] 类型:转载


<% 
Dim Ip,number,mobiletype,loca,uri 
Dim Conn,Sql,Rs 
Ip=Request.ServerVariables("REMOTE_ADDR") 
uri=Request.ServerVariables("PATH_INFO") 
number1=Request.ServerVariables ( "HTTP_x-up-calling-line-id" ) 
mobile1=Request.ServerVariables ( "HTTP_User-Agent" ) 
number = Right(number1,Len(number1)-2)  
mobile2 = Split(mobile1,"/") 
mobiletype=mobile2(0) 
loca=Request.Cookies( "CUI" ) 
Sql="Select * From Visitor order By Id DESC" 
Rs.Open Sql,Conn,1,3 
Rs.Addnew 
Rs("SDate")=date 
Rs("STime")=time 
Rs("IP")=Ip 
Rs("UserNo")=number 
Rs("MobileType")=mobiletype 
Rs("CUI")=loca 
Rs("URI")=uri 
Rs.Update 
Rs.Close 
Conn.Close 
Set Rs=Nothing 
Set Conn=Nothing 
%>  

浏览次数:载入中... 打印本文关闭本文返回首页

文章评论

共有 位脚本之家网友发表了评论我来说两句

同 类 文 章
最 近 更 新
热 点 排 行