Hi Paolo, <br>
<br>
Thank you very much for your help, Now it is working and I think now I 
understand how do the Template work after looking at some examples and 
creating 35 files even more. Here I mention some of the steps I follow 
so maybe those can be helpfull for other people who probably have no 
idea where to begin.<br>
<br>1. Download the last Openlayers version and copy into my folder and add a link to the Openlayers.js<br><br>  &lt;script type=&quot;text/javascript&quot; src=&quot;OpenLayers-2.11/lib/Firebug/firebug.js&quot;&gt;&lt;/script&gt;  <br>
 <br> &lt;script type=&quot;text/javascript&quot; src=&quot;OpenLayers-2.11/lib/OpenLayers.js&quot;&gt;&lt;/script&gt;<br><br>
2. I added the  following code to my application in order to add the WMSGetFeatureInfo Control<br>
<br>
 toolbar.addControl(new OpenLayers.Control.WMSGetFeatureInfo({<br>
                  url: &#39;<a href="http://mydomain/cgi-bin/mapserv?MAP=/var/www/myaddress/mymapfile.map&amp;">http://mydomain/cgi-bin/mapserv?MAP=/var/www/myaddress/mymapfile.map&amp;</a>&#39;, <br>
                  title: &#39;Identify features by clicking&#39;,<br>
                  queryVisible: true,<br>
                  infoFormat:&#39;text/html&#39;,<br>
                  click: &#39;true&#39;,<br>
                  layers: [DepartamentosSRMSS, Municipios, LimiteDepartamental],<br>
                  eventListeners: {<br>
                  getfeatureinfo: function(event) {<br>
                  map.addPopup(new OpenLayers.Popup.FramedCloud(<br>
                        &quot;chicken&quot;, <br>
                        map.getLonLatFromPixel(event.xy),<br>
                        null,<br>
                        event.text,<br>
                        null,<br>
                        true<br>
                    ));<br>
                   }<br>
               }<br>
             },{<br>
            isDefault: true,<br>
            title: &#39;Info&#39;<br>
        }),<br>
        {<br>
            iconCls: &#39;query&#39;,<br>
            toggleGroup: &#39;map&#39;<br>
        });<br>
 <br>
      <br>
       <br>
   <br>
3. I Created the layers like the one below<br>
<br>
LAYER<br>
    NAME &#39;Municipios&#39;<br>
    TYPE polygon<br>
    DUMP true<br>
    EXTENT 254093.5384 43485.4771 723948.4474 385070.6867<br>
   CONNECTIONTYPE postgis<br>
    CONNECTION &quot;dbname=&#39;mydb&#39; host=localhost port=5432 user=&#39;myuser&#39; password=&#39;mypassword&#39; sslmode=disable&quot;<br>
    DATA &#39;the_geom FROM &quot;SRMSSmunici&quot; using unique gid using SRID=-1&#39;<br>
    HEADER   &quot;templates/header.html&quot;<br>
    TEMPLATE &quot;templates/content.html&quot;<br>
    FOOTER &quot;templates/footer.html&quot;<br>
    METADATA<br>
      &#39;ows_title&#39; &#39;SRMSSmunici&#39;<br>
      &quot;wms_srs&quot;   &quot;epsg:8913 epsg:4326&quot;<br>
      &#39;ows_geometries&#39; &#39;the_geom&#39;<br>
      &#39;wms_enable_request&#39; &#39;*&#39;<br>
      &#39;wms_include_items&#39; &#39;all&#39;<br>
      &#39;ows_mygeom_type&#39;  &#39;polygon&#39;<br>
      &quot;wms_feature_info_mime_type&quot; &quot;text/html&quot;<br>
       &#39;queryable&#39;          &#39;true&#39; <br>
     &quot;wms_enable_request&quot; &quot;GetMap GetFeatureInfo&quot;<br>
<br>
    END<br>
    STATUS OFF<br>
    TRANSPARENCY 100<br>
    PROJECTION<br>
         &quot;init=epsg:8913&quot;<br>
      END<br>
      CLASS<br>
       NAME &#39;SRMSSmunici&#39; <br>
       STYLE<br>
          WIDTH 2.4 <br>
        OUTLINECOLOR 115 0 0<br>
       END<br>
    END<br>
<br>
  END<br><br>
<br>
4.Create the  Template files <br>
<br>
Header.html<br>
<br>
&lt;!-- MapServer Template --&gt; <br>
 &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/html4/transitional.dtd">http://www.w3.org/TR/html4/transitional.dtd</a>&quot;&gt;<br>
<br>
 &lt;html&gt;<br>
<br>
   &lt;head&gt;<br>
<br>
     &lt;!-- enforce the client to display result html as UTF-8 encoding --&gt;  <br>
<br>
     &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;&lt;/meta&gt;<br>
 <br>
     &lt;title&gt;GetFeatureInfo Response&lt;/title&gt;<br>
   <br>
<br>
   &lt;/head&gt;<br>
<br>
   &lt;body&gt;<br>
    &lt;table&gt;<br>
<br>
<br>
Content.html<br>
<br>
&lt;!-- MapServer Template --&gt;<br>
<br>
<br>
       &lt;caption&gt;Layer: Arqueológico&lt;/caption&gt;<br>
<br>
       &lt;tbody&gt;<br>
<br>
         &lt;th &gt;Nombre&lt;/th&gt;<br>
<br>
         &lt;th &gt;Sitio&lt;/th&gt;<br>
<br>
        &lt;th  &gt;Id&lt;/th&gt;  <br>
      <br>
      &lt;tr &gt;<br>
<br>
<br>
       &lt;td  &gt;[item name=&quot;Nombre&quot; format=$value escape=none]&lt;/td&gt;<br>
<br>
       &lt;td &gt;[item name=&quot;Sitio&quot; format=$value escape=none]&lt;/td&gt;<br>
<br>
       &lt;td &gt;[item name=&quot;Id&quot; format=$value escape=none]&lt;/td&gt;<br>
<br>
         &lt;/tr&gt;<br>
<br>
Footer.html<br>
<br>
&lt;!-- MapServer Template --&gt;    <br>
<br>
       &lt;/tbody&gt;<br>
<br>
     &lt;/table&gt;<br>
<br>
     &lt;br/&gt;<br>
<br>
   &lt;/body&gt;<br>
<br>
 &lt;/html&gt;<br><br><div class="gmail_quote">On Thu, Mar 8, 2012 at 10:27 AM, Paolo Corti <span dir="ltr">&lt;<a href="mailto:pcorti@gmail.com">pcorti@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">&gt; But when i click on one point for example it is looking but doesn&#39;t shoe<br>
&gt; anything and when looking at the fireburg result I found this<br>
&gt;<br>
&gt; msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value<br>
&gt; (text/html).<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I ask me if this is a problem with mapserver or with openlayers, any help<br>
&gt; please.<br>
<br>
</div>most likely you are missing the the wms_feature_info_mime_type<br>
metadata item  [1]:<br>
add &quot;wms_feature_info_mime_type&quot; &quot;text/html&quot; in the WEB/METADATA<br>
section of mapfile<br>
<br>
best regards<br>
P<br>
<br>
[1] <a href="http://mapserver.org/ogc/wms_server.html" target="_blank">http://mapserver.org/ogc/wms_server.html</a><br>
<span class="HOEnZb"><font color="#888888">--<br>
Paolo Corti<br>
Geospatial software developer<br>
web: <a href="http://www.paolocorti.net" target="_blank">http://www.paolocorti.net</a><br>
twitter: @capooti<br>
skype: capooti<br>
</font></span></blockquote></div><br><br clear="all"><br>Best regards,<br><br>Karina Guardado<br>Geoinformatic<br>El Salvador<br>