I prefer this,

(as http_host isn't in my cgi scope :iis)

<cfif lcase(CGI.HTTPS) eq "on">
    <cfset chooseProtocol = "https://">
<cfelse>
  <cfset chooseProtocol = "http://">
</cfif>
<cfset thispage = chooseProtocol & cgi.SERVER_NAME & cgi.SCRIPT_NAME & 
cgi.QUERY_STRING>

Jared.


Robert Forsyth wrote:

> #HTTP_HOST##SCRIPT_NAME#?QUERY_STRING# will return to whole url.
>
> Robert Forsyth
> Director of Web Operations
> Irides, LLC
> Phone: 202-364-7831
>   Fax: 202-364-2481
>
> -----Original Message-----
> From: Mark Armendariz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 24, 2000 11:58 AM
> To: Cf-Talk
> Subject: How do I get my Current URL
>
> I've done this 100's of times, and I've drawn a blank. How do I get the
> current URL of the page I'm working on (full URL with parameters) within a
> variable? I'm trying to do a "Print This Page" button which will, with an
> additional parameter of &Print=1, kill the menus and titles and print the
> page. I have all the javascript and other functionality in place, I just
> need the link that refers to the currentpage with the added parameter.
>
> Thanks...
>
> Mark Armendariz
> Righteous Design
>
> www.sorighteous.com
>
> ------------------------------------------------------------------------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
>
> ------------------------------------------------------------------------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to