HTML variable question

Paul Ramsey pramsey at REFRACTIONS.NET
Mon Feb 27 21:46:14 PST 2006


Brent,
Yes, it's great!
If memory serves, it's as easy as putting this in the rest of your  
template form:

<INPUT TYPE="HIDDEN" NAME="trip" VALUE="[trip]">

Only issue is you might want an initialization value at startup,  
which you could pass in as a GET parameter in the page opening link.

P

On 27-Feb-06, at 9:20 PM, Brent Wood wrote:

> gidday,
>
> I have a mapfile picking up a parameter from the html from a select  
> list, to
> choose a value in an Postgis SQL to restrict the returned values.  
> If I zoom,
> however, I lose the value.
>
> Is there any way to pass an html variable to the html template to  
> "remember"
> the selected member in the select list (without having to resort to  
> mapscript)?
>
> ie: HTML select returns trip=tan0601
>
> mapfile data statement has:
>
> select the_geom from (select * from stations where trip="%trip%")  
> as myquery
> using unique oid using SRID=4326
>
>
> This works perfectly, and displays just the selected data but when  
> I zoom,
> the selection is lost. Is there any way I can set up the mapfile &  
> html
> template to retain the selected value?
>
>
> Thanks,
>
>   Brent Wood



More information about the MapServer-users mailing list