What do you mean "hack it out using CGI variables"?  This is usually how
it's done.  The CF processor doesn't really know what the URL is, in that it
is just passed a template file to process by the web server.  CF mostly
knows files and file systems.  Except through what it knows through CGI
variables.

<cfset myurl = "http://#cgi.server_name##cgi.path_info#?#cgi.query_string#";>

Jim


----- Original Message -----
From: "Cornillon, Matthieu" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, February 18, 2002 11:50 AM
Subject: Current URL?


> Hi, everyone.  I feel silly for asking such a simple question, but I can't
> find the definitive answer.  Is there a sure-fire way to pull the URL of
the
> currently displayed page?  I can hack it out using CGI variables, but I
was
> thinking that there is probably a CF reserved variable that I'm just
missing
> that gives me the whole thing, from "http://"; right out the the last
> character of the query string.  Anyone know what that is?
>
> Thanks,
______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to