HTML variable question
pramsey at REFRACTIONS.NET
Tue Feb 28 00:46:14 EST 2006
Yes, it's great!
If memory serves, it's as easy as putting this in the rest of your
<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.
On 27-Feb-06, at 9:20 PM, Brent Wood wrote:
> 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
> the selected member in the select list (without having to resort to
> 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 &
> template to retain the selected value?
> Brent Wood
More information about the mapserver-users