[mapserver-users] Back from query

David Turover dturover@student.santarosa.edu
Mon, 29 Jul 2002 14:58:07 -0700 (PDT)


> I 'm using mapsever  and  I'm having the following problem.
> 
> I had created a submit button to back to the where the original  map is  
> after mapsever execute a query.
> This is the code:
> 
> <input type="submit" name="Submit" value="Back">
>     </th>
>   </tr>
> </table>
>   <input type="hidden" name="map" value="[map]">
>   <input type="hidden" name="savequery" value="true">
>   <input type="hidden" name="zoomsize" value=2>
> </form>
> 
> But when it happens all the layers are reset.
> And i want to back and keep all selected layers.
> 
> Can i do it?
> 
> Thanks
> Joćo.
> 


You will want to have hidden <input> tags to repeat all of the environment 
variables used by the query page, with these three exceptions:

Set mode to "browse" or simply don't set it (browse is the default)
Make img.x half the width of your image
Make img.y half the width of your image