[mapserver-users] Echo PHP in a query template?

Bistrais, Bob Bob.Bistrais at maine.gov
Fri Oct 5 12:32:09 PDT 2012


I am customizing a MapServer query template.  I'd like to echo back some PHP  code in the HTML template.  But the process seems to ignore the PHP part.  Here's a code example:

<!-- MapServer Template -->
<?
$test = "php test!";                         <----Set PHP variable
?>

<table>
<td align="left"><b>Your Name:</b></td></tr>
<tr>
<td><input type="text" id="username" value="[username]"/></td>
</tr>

<h3><? echo "test" ?></h3>                      <---Call PHP variable

</table>

-The PHP echo displays nothing

Is there a way to get this to work?

Thanks,
Bob Bistrais, GISP
Maine Office of Geographic Information Systems
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121005/bfa5ffe9/attachment.html>


More information about the mapserver-users mailing list