cgi.query_string will return everything after the ? in a url.  combine that
with getfilefrompath (or other cgi variables that can return pretty much the
same info) and you should be able to do what you want.

|-----Original Message-----
|From: Andrew Peterson [mailto:[EMAIL PROTECTED]]
|Sent: Tuesday, July 03, 2001 4:14 PM
|To: CF-Talk
|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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to