On Sat, 14 Aug 2004 20:31:26 -0300, Marco Antonio C. Santos
<[EMAIL PROTECTED]> wrote:
> Hi all
>
> how to get the actual template name(URL)?
>
> If http://www.anyURL.com/site/testingURL.cfm is easy to get... After
> get that URL I'll add my ?var=name.... but...
>
> If that URL looks like:
>
> http://www.anyURL.com/site/testingURL.cfm?siteID=blablabla&countryID=blablabla
>

To get the template name, you could use:

listLast(cgi.script_name, "/")

However, could you maybe elaborate on exactly what you're trying to
accomplish? It seems like you could just use:

#cgi.script_name#?#cgi.query_string#

if you're looking to build URLs, but I could be misunderstanding what
you're trying to do.

Regards,
Dave.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to