Hey thanks a lot Joshua! -----Original Message----- From: Joshua Slive [mailto:jslive@xxxxxxxxx] Sent: Thursday, December 01, 2005 9:33 PM To: users@xxxxxxxxxxxxxxxx Subject: Re: [users@httpd] Extracting query fields from query-SSI On 11/30/05, Kishor MailingList <kishor.tech@xxxxxxxxx> 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: http://httpd.apache.org/docs/2.0/mod/mod_include.html#flowctrl Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx