Thanks Daniel, with the correct path, it&#39;s working great!<div><br></div><div>but I also had to put the &quot;magic string&quot; at the top of my file to make it work:</div><div>&lt;!-- Mapserver Template --&gt;</div><div>
<br></div><div>MartinOuellet<br><br><div class="gmail_quote">2009/11/18 Daniel Morissette <span dir="ltr">&lt;<a href="mailto:dmorissette@mapgears.com">dmorissette@mapgears.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Martin Ouellet wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I&#39;ve got the current layer definition<br>
<br>
</blockquote></div>
[...]<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
TEMPLATE &quot;<a href="http://geomsp.msp.gouv.qc.ca/communs/todo2.html" target="_blank">http://geomsp.msp.gouv.qc.ca/communs/todo2.html</a>&quot;<br>
</blockquote></div>
[...]<div class="im"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I receive this response:<br>
[DATE_PRODUCTION] -&gt; mapserver dont seem to replace the variable with the query value<br>
<br>
</blockquote>
<br></div>
When you specify a URL in the TEMPLATE parameter, then the parameters replacement is done in the URL itself, and MapServer will redirect the client to the URL in which the variable replacements have been made e.g.<br>
<br>
TEMPLATE &quot;<a href="http://geomsp.msp.gouv.qc.ca/communs/todo2.html?DATEPROD=[DATE_PRODUCTION]" target="_blank">http://geomsp.msp.gouv.qc.ca/communs/todo2.html?DATEPROD=[DATE_PRODUCTION]</a>&quot;<br>
<br>
To use a regular template file, you need to specify its path on disk, and then MapServer will load the template and do the variable replacements inside the template. e.g.<br>
<br>
TEMPLATE &quot;/path/to/communs/todo2.html&quot;<br>
<br>
Daniel<br><font color="#888888">
-- <br>
Daniel Morissette<br>
<a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</font></blockquote></div><br></div>