<cfset somevar=cgi.script_name&"?"&cgi.query_string>

HTH,

Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc.
www.CoolFusion.com
631-737-4668 x101
inFusion Mail Server (iMS) - The Intelligent Mail Server
Join the DevCon community at www.coolfusion.com/devcon

----- Original Message ----- 
From: "Andrew Peterson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 4:13 PM
Subject: Capture URL as Variable


> Hi,
> 
> This is probably a dumb question. Let's say a user is visiting a page on my
> site called
>  www.mysite.com/homepage.cfm?memberid=123 and I want to capture the template
> name and corresponding name/value pairs (in this case,
> homepage.cfm?memberid=123) into a variable? Is there a function that does
> this? I can use GetFileFromPath(GetTemplatePath()) to get homepage.cfm, but
> that leaves out everything after cfm. Basically, I want to create an
> application which will allow users to bookmark their favorites on my site,
> so I need everything captured after the .com.
> 
> Thanks for any help.
> 
> Andrew
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to