That should not work. The PATH_INFO variable should go *after* the
SCRIPT_NAME and *before* the QUERY_STRING. You also left out SERVER_PORT,
just in case, and you'll probably even want to add in something to check for
HTTPS, but that can't be done in one line without an IIF. ;)
Try:
http://#CGI.SERVER_NAME#:#CGI.SERVER_PORT##CGI.SCRIPT_NAME##CGI.PATH_INFO#?#
CGI.QUERY_STRING#
Why? Look:
http://foo.com:80/script/name/here.cfm/path/info/here.cfm?query=string
In your method, it would be:
http://foo.com:80/path/info/here.cfm/script/name/here.cfm?query=string
The problem is that the script isn't at </path/info/here.cfm>, it's actually
at </script/name/here.cfm>. The actual physical location comes before the
extra path info. Your example will, of course, work if you have no
PATH_INFO. :)
HTH
-Rick
-----Original Message-----
From: Mr G Lewis [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 25, 2000 6:35 AM
To: [EMAIL PROTECTED]
Subject: RE: How do I get my Current URL
I take it back:
http://#CGI.SERVER_NAME##CGI.PATH_INFO##CGI.SCRIPT_NA
ME#?#CGI.QUERY_STRING#
does work perfectly
On 24 Aug 00, at 15:05, Chapman, Katrina wrote:
> Don't know of one off the top of my head but you could build it using
three
> CGI variables. Server_name, Script_name, and query_string
>
> Just concatenate those in that order and you'll have it.
>
> --K
>
> -----Original Message-----
> From: Mark Armendariz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 24, 2000 8: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/[email protected]/
> 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/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or s
end a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
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/[email protected]/
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.