Perhaps this tutorial will be of help:<br>
<a href="http://maps.dnr.state.mn.us/cgi-bin/mapserv46?map=/usr/local/www/docs_maps/mapserver_demos/tests46/query_persistent/test.map&amp;program=/cgi-bin/mapserv46&amp;htmlroot=/mapserver_demos/tests46&amp;map_web_imagepath=/usr/local/www/docs_maps/tmp/&amp;map_web_imageurl=/tmp/">
http://maps.dnr.state.mn.us/cgi-bin/mapserv46?map=/usr/local/www/docs_maps/mapserver_demos/tests46/query_persistent/test.map&amp;program=/cgi-bin/mapserv46&amp;htmlroot=/mapserver_demos/tests46&amp;map_web_imagepath=/usr/local/www/docs_maps/tmp/&amp;map_web_imageurl=/tmp/
</a><br><br>
Xin<br>
<br><div><span class="gmail_quote">On 13/10/05, <b class="gmail_sendername">Chip Taylor</b> &lt;<a href="mailto:work@xwb.com">work@xwb.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I apologize if the title is somewhat misleading.&nbsp;&nbsp;What I am trying to do<br>should be pretty common but I have not found a solution.<br><br>Environment:<br>&nbsp;&nbsp;Mapserver 4.6 running under Apache on Windows (soon to be changed to IIS
<br>on Windows)<br>&nbsp;&nbsp;No database.&nbsp;&nbsp;PostGIS or MySQL to be added later.<br>&nbsp;&nbsp;Little experience with PHP, MapScript in learning process<br><br>Data:<br>&nbsp;&nbsp;Shapefiles of US, states, counties (all polygons)<br><br>Desired result:
<br>&nbsp;&nbsp;1. User brings up map of US and sees outlines of states. (have that<br>working - no problem).<br>&nbsp;&nbsp;2. User selects a state by clicking somewhere within the state polygon OR<br>enters state name in text box (user choice - either is valid option)
<br>&nbsp;&nbsp;3. MapServer redraws map with desired state as extents<br>&nbsp;&nbsp;4. User selects county from state by clicking somewhere within the county<br>boundary polygon or enters county name in text box (user choice - either is<br>
valid option)<br>&nbsp;&nbsp;5. Mapserver redraws map with desired county as extents.<br>&nbsp;&nbsp;6. All this should be accomplished using the same base mapfile defining<br>layers, etc.<br><br>Any help with 2-6 would be most helpful.&nbsp;&nbsp;Thanks in advance.
<br><br>Chip Taylor<br>Prepared Response, Inc.<br></blockquote></div><br>