Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set current URL as a variable?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi<br>I was wondering if anybody knows how to get the current url of a page and set it as a variable??<br>TIA
 
&lt;CFSET current_page = &quot;#cgi.path_info#&quot;&gt;<br><br>or if you want the whole template including the query string (the stuff after the question mark...)<br><br>&lt;CFSET current_page = &quot;#cgi.path_info#?#cgi.query_string#&quot;&gt;<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top