same effect as CGI mode=itemquerymap but with PHP/mapscript

Rodrigo Martín LÓPEZ GREGORIO rodrigomlg at GMAIL.COM
Fri Aug 3 09:50:24 PDT 2007


Hi List.

Normally I use mapserver as CGI, but now I need to move to PHP/mapscript. In
my actual applet I use the CGI mode=itemquerymap to show the selected
polygon on a layer with different color. So I pass the next values on the
CGI call:

mode=itemquerymap&qlayer=mylayer&qstring=someattribute='avalue'

This works greats through CGI. Now I want to get the same effect using PHP
Mapscript but I'm a little confused how to get it working. I know how to get
the string parameters in php, even split the qstring parameter using explode
but what I don't know is what must I do to get PHP Mapscript use the
QUERYMAP format (defined in my base mapfile) to show the selected polygon.

Can anyone give me a hint?

Thanks.

Rodrigo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070803/5616e690/attachment.htm>


More information about the MapServer-users mailing list