<div>Julien</div><div><br></div><div>Thanks for your help.</div><div><br></div>I introduce the sentence but doesn&#39;t work<div><br></div><div>The template can read and show the variable value, but the mapfile doesn&#39;t.</div>

<div><br><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">I am missing something or I am doing something wrong, I appreciate any help</span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><br>

</span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><br></span></div><div>Alejandro Narváez<br>
<br><br><div class="gmail_quote">2010/2/22 Julien-Samuel Lacroix <span dir="ltr">&lt;<a href="mailto:jlacroix@mapgears.com">jlacroix@mapgears.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<br>
Add the following in your template:<br>
&lt;input type=&quot;hidden&quot; name=&quot;pack&quot; value=&quot;[$pack$]&quot;&gt;<br>
<br>
The variable you set via the code are not automatically added to hidden variables of the form.<br>
<br>
Julien<br>
<br>
Alejandro Narvaez wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
I am trying to use variable substitution with chameleon, but I have not achieved that it works.<br>
Someone might indicate how to do that.<br>
<br>
<br>
In mapfile I introduce this sentences<br>
<br>
DATA &quot;select * from localidad inner join base on localidad.localidad=base.localidad where base.pack=&#39;%pack%&#39;&quot; <br>
and, into de index.html, theese<br>
<br>
$oApp-&gt;CWCInitialize( $szTemplate, $szMapFile, $szContext  );<br>
*$oLayer = $oApp-&gt;moMapSession-&gt;oMap-&gt;getLayerByName(&#39;layer name&#39;);*<br>
*$oApp-&gt;setVar(&#39;pack&#39;, &#39;variable value&#39; );*<br>
$oApp-&gt;CWCExecute(array(dirname(__FILE__).&quot;/widgets&quot;));<br>
<br>
<br>
thanks<br>
<br>
Alejandro Narváez<br>
<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Chameleon mailing list<br>
<a href="mailto:Chameleon@lists.maptools.org" target="_blank">Chameleon@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/chameleon" target="_blank">http://lists.maptools.org/mailman/listinfo/chameleon</a><br>
</blockquote>
<br>
-- <br>
Julien-Samuel Lacroix<br>
Mapgears<br>
<a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>
</blockquote></div><br></div></div>