Asp-Classic
ASP - 列印整個請求內容
我正在調試一些 ASP 程式碼,我需要快速列印出目前請求資料結構,我相信這是一個鍵/值對數組。
我看到 Request.Form(“key”) 是提取單個元素的方法。
列印整個東西的任何提示?
試試這個
For Each item In Request.Form Response.Write "Key: " & item & " - Value: " & Request.Form(item) & "<BR />" Next
在職的:
For x = 1 to Request.Form.Count Response.Write x & ": " _ & Request.Form.Key(x) & "=" & Request.Form.Item(x) & "<BR>" Next我在這裡有其他經典的 ASP 程式碼片段:
https://github.com/RaviRamDhali/programming-procedure/tree/master/Snippets/ASP