永发信息网

asp Request.ServerVariables的问题

答案:1  悬赏:80  手机版
解决时间 2021-03-06 23:50
  • 提问者网友:ミ烙印ゝ
  • 2021-03-06 12:15
if countpage>1 then
action = "http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME")
if int(request("page"))<=int(countpage) and int(request("page"))<>1 and request("page")<>"" then
response.write "<a href='"&action&"?typeid="&type1&"&page="&request("page")-1&"' class=p12hei> 上一页 </a>"
这里action是什么意思啊?还有Request.ServerVariables的用法,给我详细解读下这段代码,谢谢了。
还有 Split起什么作用,都说的通俗点,好理解点,谢谢了
我刚学ASP,谢谢了啊
最佳答案
  • 五星知识达人网友:渡鹤影
  • 2021-03-06 12:53
Request.ServerVariables("SCRIPT_NAME") 可以获得当前的文件在服务器中的路径,比如本窗口地址栏中的question/79958994.html
Request.ServerVariables("HTTP_HOST") 可以获得当前网页的服务器域名,比如本窗口地址栏的zhidao.baidu.com
Request.ServerVariables其它功能自己琢磨一下,
Split()是数组函数,如:
aa="我/你/他/我们/你们/他们"
cc=Split(aa,"/")
cc(0)=我
cc(1)=你
cc(2)=他
cc(3)=我们
cc(4)=你们
cc(5)=他们
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯