httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Extracting query fields from query-SSI
Date Thu, 01 Dec 2005 16:02:39 GMT
On 11/30/05, Kishor MailingList <> wrote:
> Hi,
>  I've a query related to the SSI feature under apache.
>  I found that there are variables QUERY_STRING and QUERY_STRING_UNESCAPED
>  using which I can get to know the query that the user has sent. But I want
> to separate
>  each of the parameter in the query and make use of that.
>  e.g. http://<server>/pahe.shtml?a=1&b=2&c=3 I would like
> to extract values of
>  a, b and c from the query and use them.
>  Is there a way to do this without using any cgi or exe?

In general, ssi is not the best language for stuff like that.  But it
is probably possible using something like (untested):
 <!--#if expr="$QUERY_STRING = /a=([a-zA-Z0-9]+)/" -->
<!--#set var="value_a" value="$1" -->
<!--#endif -->

This is documented here:


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message