当前位置:主页 > 查看内容

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

发布时间:2021-07-17 00:00| 位朋友查看

简介:复制代码 代码如下: % DimIp,number,mobiletype,loca,uri DimConn,Sql,Rs Ip=Request.ServerVariables("REMOTE_ADDR") uri=Request.ServerVariables("PATH_INFO") number1=Request.ServerVariables("HTTP_x-up-calling-line-id") mobile1=Request.ServerVari……

复制代码 代码如下:

<% 
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 
%>  


原文链接:https://m.jb51.net/article/12735.htm
本站部分内容转载于网络,版权归原作者所有,转载之目的在于传播更多优秀技术内容,如有侵权请联系QQ/微信:153890879删除,谢谢!
上一篇:asp取得数组中的最大值的方法 下一篇:没有了

推荐图文


随机推荐