社区
ASP
帖子详情
如何获得本页的完整的URL?
xunua
2002-05-10 02:56:42
问大家个问题,如何获得本页的完整的URL?
...全文
121
10
打赏
收藏
如何获得本页的完整的URL?
问大家个问题,如何获得本页的完整的URL?
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
10 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
hchxxzx
2002-05-11
打赏
举报
回复
<script language=vbscript>
alert(document.url)
</script>
以上包含本页的地址及地址后的参数
sunbeamy
2002-05-11
打赏
举报
回复
请参考下面这个帖子
http://www.csdn.net/expert/topic/677/677200.xml?temp=.9717523
xunua
2002-05-11
打赏
举报
回复
那一种方法更好呢?
xxjmz_78
2002-05-10
打赏
举报
回复
赞成net_lover(孟子E章)的做法
xunua
2002-05-10
打赏
举报
回复
谢谢大侠!
baggio785
2002-05-10
打赏
举报
回复
另:
如果本文件为 news.asp?a=1&b=2&c=3
那么Response.Write Request.QueryString 为a=1&b=2&c=3
如果以post方式接受参数则为Request.Form
xunua
2002-05-10
打赏
举报
回复
谢谢。
顺便问一下,ASP能实现这个功能吗?
funboy88
2002-05-10
打赏
举报
回复
sc=request.servervariables("script_name")
sv=request.servervariables("server_name")
http="http://" & sv & sc
funboy88
2002-05-10
打赏
举报
回复
sc=request.servervariables("script_name")
sv=request.servervariables("server_name")
http="http://" & sv & sc
孟子E章
2002-05-10
打赏
举报
回复
<script>
alert(window.location.href)
</script>
php
获得
完整
url
,php 获取
完整
url
地址
主要是获取到地址栏的一些信息,域名,端口参数等复制代码代码如下://获取域名或主机地址echo$_SERVER['HTTP_HOST']."";//获取网页地址echo$_SERVER['PHP_SELF']."";//获取网址参数echo$_SERVER["QUERY_STRING"]."";//来源网页的详细地址echo$_SERVER['HTTP_REFERER']."";?>php获...
php获取请求
完整
的
url
_如何在PHP中获取
完整
的请求
URL
?
php获取请求
完整
的
url
How to get the full request
URL
of the page being processed in PHP? 如何获取正在PHP中处理的页面的
完整
请求
URL
? If you are sure the request is a http or https one, and the PHP script is executed according ...
如何在Safari中查看网页的
完整
URL
Modern versions of Safari don’t show the entire
URL
of a page in the address bar—it just shows the web site’s domain name. If this bothers you, it’s easy to change. Safari的现代版本无法在地址栏中显示页面的整个
URL
,而仅显示网站...
获得
请求页面的
完整
Url
/// ///
获得
请求页面的
完整
Url
/// /// httpRequest对象/// HttpServer对象/// 返回
Url
字符串public static string get
Url
(HttpRequest httpRequest,HttpServerUtility server){string temp;if (httpRequest.ServerVariables["HTTPS"]
asp
获得
完整
的
url
Function Get
Url
() Dim ScriptAddress,Servername,qs ScriptAddress = CStr(Request.ServerVariables("SCRIPT_NAME")) Servername = CStr(Request.ServerVariables("Server_Name")) qs=Request.QueryStr
ASP
28,401
社区成员
356,940
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章