推薦:通過實例講解來學習ASP中的函數作用:返回一個數組語法:Array(list)適用的類型:字符,數字均可以下為引用的內容:<%Dim myArray()For i = 1 to 7Redim Preserve myArr
1、得到客戶端IP
<%myip=Request.ServerVariables(Remote_Addr)%>
2、得到當前地址
| 以下為引用的內容: <script> document.write(this.location.href); </script> |
3、寫入asp
| 以下為引用的內容: <input type=hidden id=aspVar> <script> aspVar.value=location.href </script> ------------------ <% dim theAddress thAddress=request.form(aspVar) %> |
分享:ASP中Session技巧寫過稍微大型一點ASP 的人都知道,Session 這個對象真是好用,它可以用來記錄使用者私有的資料變量,既安全又方便。但是你真的知道session 的運作原理嗎?或許了解以後,你就再也不太敢使用這