asp WAP獲取手機終端信息的一段代碼
更新時間:2007年11月13日 20:52:30 作者:
復(fù)制代碼 代碼如下:
<%
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
%>
相關(guān)文章
ASP與Excel結(jié)合生成數(shù)據(jù)表和Chart圖的代碼
ASP與Excel結(jié)合生成數(shù)據(jù)表和Chart圖的代碼,需要的朋友可以參考下。2009-12-12一個強健 實用的asp+ajax二級聯(lián)動菜單(有演示和附源程序打包下載)
一個強健 實用的asp+ajax二級聯(lián)動菜單(有演示和附源程序打包下載)...2007-07-07asp中設(shè)置session過期時間方法總結(jié)
asp中默認session過期時間為20分鐘,很多情況下不夠,今天有客戶要求很多就要重新登錄了,所以準備了這篇文章,方便需要的朋友2012-09-09