<div>Hey david,</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks for your reply, i tried this but it didnt work. I am going to give you the complete link that we are using. Actually we are trying to query a states layer from the shape file and display just the north dakota state. So the link we are using are </div>  <div>&nbsp;</div>  <div><A href="http://localhost/scripts/mapserv.exe?MODE=map&amp;MAP=c:/Inetpub/scripts/stateswms.map&amp;CONTEXT=c:/Inetpub/wwwroot/mapserverdata/map_files/contextmap.xml&amp;LAYERS=states&amp;QLAYER=states&amp;QITEM=state&amp;QSTRING=('[state]'='ND'">http://localhost/scripts/mapserv.exe?MODE=map&amp;MAP=c:/Inetpub/scripts/stateswms.map&amp;CONTEXT=c:/Inetpub/wwwroot/mapserverdata/map_files/contextmap.xml&amp;LAYERS=states&amp;QLAYER=states&amp;QITEM=state&amp;QSTRING=('[state]'='ND'</A>)</div>  <div>&nbsp;</div>  <div>any suggestions please ...</div>  <div>&nbsp;</div>  <div>Thanks for your time and effort ...</div> 
 <div>kris<BR><BR><B><I>"Fawcett, David" &lt;David.Fawcett@state.mn.us&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <META content="MSHTML 6.00.2900.2912" name=GENERATOR>  <DIV><SPAN class=746400713-21072006><FONT face=Arial color=#0000ff size=2>Kris, </FONT></SPAN></DIV>  <DIV><SPAN class=746400713-21072006><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>  <DIV><SPAN class=746400713-21072006><FONT face=Arial color=#0000ff size=2>This may not quite work, but it should be closer. Try something like:</FONT></SPAN></DIV>  <DIV><SPAN class=746400713-21072006><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>  <DIV><SPAN class=746400713-21072006>  <DIV><A href="http://pathtomapserv.exe/?MODE=itemnquerymap&amp;LAYERS=layer1&amp;QLAYER=layer1&amp;QITEM=colname&amp;QString=('[colname]'='value'"><FONT face=Arial size=2>http://pathtomapserv.exe?MODE=<SPAN
 class=746400713-21072006>itemnquerymap</SPAN>&amp;LAYERS=layer1&amp;QLAYER=layer1&amp;QITEM=colname&amp;QString=(<SPAN class=746400713-21072006>'[</SPAN>colname<SPAN class=746400713-21072006>]'</SPAN>=<SPAN class=746400713-21072006>'</SPAN>value<SPAN class=746400713-21072006></SPAN>'</FONT></A><FONT face=Arial><FONT color=#0000ff><FONT size=2>)<SPAN class=746400713-21072006> </SPAN></FONT></FONT></FONT></DIV>  <DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=746400713-21072006></SPAN></FONT></FONT></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=746400713-21072006>David.</SPAN></FONT></FONT></FONT></DIV>  <DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=746400713-21072006></SPAN></FONT></FONT></FONT>&nbsp;</DIV></SPAN></DIV>  <BLOCKQUOTE style="MARGIN-RIGHT: 0px">  <DIV></DIV>  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma size=2>-----Original
 Message-----<BR><B>From:</B> UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>rock well<BR><B>Sent:</B> Thursday, July 20, 2006 5:49 PM<BR><B>To:</B> MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] CGI Qlayer,Qstring variables usage<BR><BR></FONT></DIV>  <DIV>Hello all, </DIV>  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I was trying to query one of the layers from a shape file in the url, i am used map as the mode and gave the layer name for Qlayer, column name for Qitem and QString. Part of the URL looks like</DIV>  <DIV>&nbsp;</DIV>  <DIV><A href="http://pathtomapserv.exe/?MODE=map&amp;LAYERS=layer1&amp;QLAYER=layer1&amp;QITEM=">http://pathtomapserv.exe?MODE=map&amp;LAYERS=layer1&amp;QLAYER=layer1&amp;QITEM=</A>colname&amp;QString=("colname=value")</DIV>  <DIV>&nbsp;</DIV>  <DIV>the map is displayed but it didnt filter the layer with the given querystring variables ....</DIV>  <DIV>&nbsp;</DIV>  <DIV>Is there
 something missing, can anyone suggest with something ...</DIV>  <DIV>&nbsp;</DIV>  <DIV>Thanks for your effort and time ....</DIV>  <DIV>kris</DIV>  <div>  <HR SIZE=1>  Do you Yahoo!?<BR>Next-gen email? Have it all with the <A href="http://us.rd.yahoo.com/evt=42241/*http://advision.webevents.yahoo.com/handraisers">all-new Yahoo! Mail Beta.</A></BLOCKQUOTE></BLOCKQUOTE><BR><p>&#32;
                <hr size=1>Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. <a href="http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com"> Great rates starting at 1¢/min.