[mapserver-users] How to pass variables to a query template?

Bistrais, Bob Bob.Bistrais at maine.gov
Tue Apr 9 13:20:03 PDT 2013


Thanks Brent,
That give me something to go on and a few ideas.

From: Brent Fraser [mailto:bfraser at geoanalytic.com]
Sent: Tuesday, April 09, 2013 4:16 PM
To: Bistrais, Bob
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] How to pass variables to a query template?

Bob,

  Since you are using PHP Mapscript, you have to add that step to your PHP script yourself.  You may be able to simply put the request array into the parameter list:

$results = $map->processquerytemplate($_REQUEST, false);

or you may have to do some array massaging before passing the Request keyword/values to the processquerytemplate function...



Best Regards,

Brent Fraser
On 4/9/2013 1:58 PM, Bistrais, Bob wrote:
I have some code which sends query results to a template for display, using the MapServer processquerytemplate method.  This works fine, but I'd also like to pass a variable to the template to be output in the result as well.  I have been looking at the documentation on templates, http://mapserver.org/mapfile/template.html , and saw the [post or get variable name].  This looks promising but I'm not sure how to use this with PHP-Mapscript.  How does one do this?




_______________________________________________

mapserver-users mailing list

mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>

http://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130409/7dbd5458/attachment.html>


More information about the mapserver-users mailing list