You can also access it through the $ENV{PATH_INFO} environment variable. I believe 
CGI.pm also gives you some access to it as well.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Simon Wilcox
Sent: Tuesday, June 26, 2001 05:27 AM
To: Viljo Marrandi
Cc: Template Toolkit List
Subject: Re: [Templates] url parsing


Viljo Marrandi wrote:
> 
> Hello,
> 
> Don't know if this is the right place to ask this question, but i'm
> going to use TT so anyway... Does anyone know any good way to parse url
> in such way that everything that comes after address are used as
> parametres eg.
> 
> http://www.tester.com/pictures/nature/tree.html
> 
> And parametres will be like:
> main_category = pictures
> sub_category = naturee
> search_string = tree
> 

If you're using Apache and mod_perl, create a custom handler
(Apache::Template may even work ?) and install it in a Location
directive.

Any extra path info will be available to the handler through
$r->path_info

HTH,

Simon.

--
"almost, but not quite, entirely unlike tea."

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates



Reply via email to