asp 实现显示所有的服务器变量值的函数_ASP教程-查字典教程网
asp 实现显示所有的服务器变量值的函数
asp 实现显示所有的服务器变量值的函数
发布时间:2016-12-29 来源:查字典编辑
摘要:

<%

'******************************

'函数:ShowServerVar(VarName)

'参数:VarName,如提供变量名,则显示该变量值,如果参数为空则显示所有变量值

'作者:阿里西西

'日期:2007/7/13

'描述:显示所有的服务器变量值,返回值:对应值的字符串

'示例:<%=ShowServerVar(VarName)%>

'******************************

FunctionShowServerVar(VarName)

dimdest

ifVarName=""then

foreachdestinRequest.ServerVariables

ShowServerVar=ShowServerVar&"<li>Request.ServerVariables("""&dest&""")="&Request.ServerVariables(dest)&"</li>"&vbcrlf

next

else

ShowServerVar=Request.ServerVariables(VarName)

endif

Endfunction

%>

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新ASP教程学习
    热门ASP教程学习
    编程开发子分类