<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/post//</link>
<title><![CDATA[Get the current page URL]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[编程杂谈]]></category>
<pubDate>Sun, 26 Sep 2010 16:58:39 +0000</pubDate> 
<guid>https://www.heckjj.com/post//</guid> 
<description>
<![CDATA[ 
	<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; There are times in your scripts when you are going to&nbsp;&nbsp;want to get the current page URL that is shown the browser URL&nbsp;&nbsp;window.</span><span> For example maybe a page URL has&nbsp;&nbsp;Querystring info appended to it and you need to send an email off to someone&nbsp;&nbsp;with that same exact URL and Querystring information. There are plenty of other&nbsp;&nbsp;reasons as well.<br /><br />Here is some code to do it.<br /><br />Lets say the&nbsp;&nbsp;current page is simply &quot;<span style="color: #0000ff">http://www.hecks.tk/showidc.asp</span>&quot;<br /><br />This is all you&nbsp;&nbsp;need to get you the current page URL<br /></span><span><span><span style="background-color: #ffff00">&lt;%<br />Thispage =&quot;http://&quot;&nbsp;&nbsp;&amp; Request.ServerVariables(&quot;SERVER_NAME&quot;) &amp;&nbsp;&nbsp;Request.ServerVariables(&quot;URL&quot;)<br />%&gt;</span><br /><br />Now, if your page has&nbsp;&nbsp;Querystring info and variables you want as well.<br />Like so &quot;<span style="color: #0000ff">http://www.mysite,com/showidc.asp?ID=109</span>&quot; <br /><br />you&nbsp;&nbsp;would use code like this.<br /><br /></span></span><span><span><span style="background-color: #ffff00">&lt;%<br />Thispage =&quot;http://&quot;&nbsp;&nbsp;&amp; Request.ServerVariables(&quot;SERVER_NAME&quot;) &amp;&nbsp;&nbsp;Request.ServerVariables(&quot;URL&quot;) &amp; &quot;?&quot; &amp;&nbsp;&nbsp;Request.Querystring<br />%&gt;</span></span><br /><br /></span><span>If your page had Form info that might have been posted to it&nbsp;&nbsp;you would use code like this.<br /><br /></span><span><span><span style="background-color: #ffff00">&lt;%<br />Thispage = &quot;http://&quot; &amp;&nbsp;&nbsp;Request.ServerVariables(&quot;SERVER_NAME&quot;) &amp; Request.ServerVariables(&quot;URL&quot;)&nbsp;&nbsp;&amp; &quot;?&quot; &amp; Request.Form<br />%&gt;</span><br /><br />If your page had both&nbsp;&nbsp;Querystring and Form info you could try code like&nbsp;&nbsp;this.<br /><br /></span></span><span style="background-color: #ffff00"><span>&lt;%<br />Thispage = &quot;http://&quot; &amp;&nbsp;&nbsp;Request.ServerVariables(&quot;SERVER_NAME&quot;) &amp; Request.ServerVariables(&quot;URL&quot;)&nbsp;&nbsp;&amp; &quot;?&quot; &amp; Request.Querystring &amp; Request.Form<br />%&gt;</span></span>
]]>
</description>
</item><item>
<link>https://www.heckjj.com/post//#blogcomment</link>
<title><![CDATA[[评论] Get the current page URL]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>