Try


<cfset lcFullURL = Trim(CGI.path_info)>
<cfif CGI.query_string NEQ "">
    <cfset lcFullURL = lcFullURL & "?" & CGI.query_string>
</cfif>

This is the code I use in a my login page.  Basically I do it so a user can bookmark any page on the site (i.e. www.euservices.com/myeu/somepage.cfm?parm=somevalue) and if they select their bookmark the system will try to go there, switch to my login page, log them in then continue to the page they requested.
______________________________________________________
  <file:///E:/EUColor.gif>
Bill Grover
Manager, Information Systems Phone: 301.424.3300 x3324
EU Services, Inc. FAX: 301.424.3696
649 North Horners Lane E-Mail:   <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
Rockville, MD 20850-1299 WWW:   <http://www.euservices.com/> http://www.euservices.com
______________________________________________________

-----Original Message-----
From: Shahzad.Butt [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 7:15 AM
To: CF-Talk
Subject: Get URL

How can I get the current URL (from browser)? e.g. I type in
http://abc.com/myTest/test.cfm I need to save this URL in a variable
inside test.cfm...

Thanks
Shaz
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to