The best way is:

listlast(cgi.script_name,"/")

That way, the subdirectories of the domain will not be included.

- jim



-----Original Message-----
From: Matt Kornguth [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 3:40 PM
To: CF-Talk
Subject: Re: Call just page name?


use #cgi.script_name#. 
May need to strip a leading slash.


On 4/3/2003 3:34 PM, Kris Pilles <[EMAIL PROTECTED]> wrote:
>How do reference just the page name with CF???
>
>http://www.domain.com/index.cfm
>
>I just want the index.cfm
>
>
>
>Thanks
>
>Kris Pilles
>Website Manager
>Western Suffolk BOCES
>507 Deer Park Rd., Building C
>Phone: 631-549-4900 x 267
>E-mail: [EMAIL PROTECTED]
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to