<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Itemquery problem</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi all,</FONT>
<BR><FONT SIZE=2>I'm having problems using the itemquery mode of Mapserver 3.6.1. I'm wanting to have a text box which the user enters a postcode, which then queries a shapefile containing postcode points. This then returns a query map of that area. At least to start anyway.</FONT></P>
<P><FONT SIZE=2>Whatever I do and whatever is entered, itemquery returns the first record, and itemnquery returns all the records.</FONT>
</P>
<P><FONT SIZE=2>What am I doing wrong? Any help would be appreciated, especially if it includes examples of how to do it right!!</FONT>
</P>
<P><FONT SIZE=2>Matt Hatcher</FONT>
</P>
<BR>
<P><FONT SIZE=2><-- test.html --></FONT>
<BR><FONT SIZE=2><html></FONT>
<BR><FONT SIZE=2><body></FONT>
<BR><FONT SIZE=2>Enter postcode:</FONT>
</P>
<P><FONT SIZE=2><form method="get" action="/cgi-bin/mapserv.exe"></FONT>
</P>
<P><FONT SIZE=2><input type="hidden" name="map" value="test.map"></FONT>
<BR><FONT SIZE=2><input type="hidden" name="map_web_imagepath" value="\Inetpub\wwwroot\tmp\"></FONT>
<BR><FONT SIZE=2><input type="hidden" name="map_web_imageurl" value="/tmp/"></FONT>
<BR><FONT SIZE=2><input type="hidden" name="program" value="/cgi-bin/mapserv.exe"></FONT>
</P>
<P><FONT SIZE=2><input type="hidden" name="mode" value="itemnquery"></FONT>
<BR><FONT SIZE=2><input type="hidden" name="qlayer" value="postcodes"></FONT>
<BR><FONT SIZE=2><input type="hidden" name="item" value="PCODE"></FONT>
<BR><FONT SIZE=2><input type="hidden" name="mapext" value="shapes"></FONT>
<BR><FONT SIZE=2><input type="hidden" name="buffer" value="1000"></FONT>
</P>
<P><FONT SIZE=2><input type="text" name="value" size="10" value=""></FONT>
<BR><FONT SIZE=2><input type="submit" value="Go!"></FONT>
</P>
<P><FONT SIZE=2></form></FONT>
<BR><FONT SIZE=2></body></FONT>
<BR><FONT SIZE=2></html></FONT>
</P>
<P><FONT SIZE=2><-- test.map (the relevant bits!) --></FONT>
</P>
<P><FONT SIZE=2>QUERYMAP</FONT>
<BR><FONT SIZE=2> SIZE 300 300</FONT>
<BR><FONT SIZE=2> STATUS ON</FONT>
<BR><FONT SIZE=2> STYLE HILITE</FONT>
<BR><FONT SIZE=2> COLOR 255 0 0</FONT>
<BR><FONT SIZE=2>END</FONT>
</P>
<P><FONT SIZE=2>LAYER</FONT>
<BR><FONT SIZE=2> NAME "postcodes"</FONT>
<BR><FONT SIZE=2> TYPE POINT</FONT>
<BR><FONT SIZE=2> STATUS OFF</FONT>
<BR><FONT SIZE=2> DATA postcodes</FONT>
</P>
<P><FONT SIZE=2> TEMPLATE "query.html"</FONT>
<BR><FONT SIZE=2> FILTER "PCODE<>''"</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2> CLASS</FONT>
<BR><FONT SIZE=2> COLOR 192 192 192</FONT>
<BR><FONT SIZE=2> SYMBOL "circle"</FONT>
<BR><FONT SIZE=2> SIZE 3</FONT>
<BR><FONT SIZE=2> END</FONT>
<BR><FONT SIZE=2>END</FONT>
</P>
<P><FONT SIZE=2><-- end --></FONT>
</P>
<CODE><FONT SIZE=3><BR>
<BR>
**********************************************************************<BR>
The information contained in this email and any subsequent<BR>
correspondence is private and is intended solely for the <BR>
intended recipient(s). For those other than the intended<BR>
recipient(s) any disclosure, copying, distribution, or any <BR>
action taken or omitted to be taken in reliance on such <BR>
information is prohibited and may be unlawful.<BR>
**********************************************************************<BR>
</FONT></CODE>
</BODY>
</HTML>