Hi Erick thanks for your help and the examples you gave me I have used one that is getfeatureinfo-popup.html and when I click the popup box open but there is an error message<br><br>
msWMSFeatureInfo(): WMS server error. Requested layer(s) are not queryable.
<br><br>You know I&#39;m workin with Mapserver and reading on the Mapserver website I found I need some parameters in my mapfile layer in order to make it work but I can&#39;t make it work so here is my layer code please if you could help me to find the problem or maybe is another problem so could you give me some ideas.<br>
<br>LAYER
<br>     CONNECTIONTYPE postgis
<br>      NAME &quot;puntos&quot;
<br>      METADATA
<br>        &quot;wfs_title&quot;    &quot;puntos&quot;
<br>        &quot;gml_include_items&quot; &quot;all&quot;
<br>        &quot;gml_featureid&quot; &quot;cod_punto&quot;<br>        &quot;wms_feature_info_mime_type&quot;  &quot;text/html&quot;
<br>        &quot;wms_title&quot;    &quot;puntos&quot; <br>        &quot;wms_srs&quot;             &quot;EPSG:4326&quot;<br>        &quot;wms_name&quot;            &quot;puntos&quot;<br>         &quot;wms_server_version&quot;  &quot;1.1.1&quot;<br>
         &quot;wms_format&quot;          &quot;image/gif&quot;<br>        
<br>      END
<br>        CONNECTION &quot;host=myhost port=5432 dbname=mydb password=mypasswd user=myuser&quot;
<br>      PROJECTION
<br>         &quot;init=epsg:4326&quot;
<br>      END<br>       DATA &quot;geom from punto using unique geom using SRID=-1&quot;<br>      DUMP TRUE
<br>      STATUS ON<br>      MINSCALE 1<br>      MAXSCALE 900000<br>      TEMPLATE &quot;puntos.html&quot; <br>      HEADER &quot;puntos.html&quot;<br>      FOOTER &quot;puntos.html&quot;<br>     TYPE POINT <br>     CLASS <br>
       STYLE
<br>        SYMBOL &#39;CIRCLE&#39; <br>         SIZE 11<br>         OUTLINECOLOR 0 0 0<br>         COLOR 255 0 0
<br>        MINSIZE 1
<br>        MAXSIZE 100
<br>      END<br>     END <br>END<br><br><br><div class="gmail_quote">On Mon, Mar 1, 2010 at 1:13 AM, Eric Lemoine <span dir="ltr">&lt;<a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On Tuesday, February 23, 2010, Karina Guardado &lt;<a href="mailto:kguardado@gmail.com">kguardado@gmail.com</a>&gt; wrote:<br>

&gt; Hello everybody,<br>
&gt;<br>
&gt; I have 2 layers that are point type and I want users to be able to click on one point (of any layer) and get the information(attributes) related to that point. Here is my code<br>
&gt;<br>
&gt;  var estaciones = new OpenLayers.Layer.WMS(&quot;estaciones&quot;,<br>
&gt; &quot;<a href="http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.map" target="_blank">http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.map</a>&quot;,<br>
&gt;                 {layers:&#39;estaciones&#39;, transparent: &quot;true&quot;,format:&quot;image/gif&quot;});<br>
&gt;<br>
&gt;     var puntos = new OpenLayers.Layer.WMS(&quot;puntos&quot;,<br>
&gt;                 &quot;<a href="http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.mapl" target="_blank">http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.mapl</a>&quot;,<br>
&gt;                 {layers:&#39;puntos&#39;, transparent: &quot;true&quot;,format:&quot;image/gif&quot;});<br>
&gt;<br>
&gt; so far what I was using was a text layer to generate a marker and then get the information  as follows:<br>
&gt;<br>
&gt; var  infpuntos = new OpenLayers.Layer.Text( &quot;infpuntos&quot;, {location: &quot;textpunto.php&quot;},<br>
&gt;                        &quot;<a href="http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.map" target="_blank">http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.map</a>&quot;);<br>
&gt;<br>
&gt; var  infestaciones = new OpenLayers.Layer.Text( &quot;infestaciones&quot;, {location: &quot;textpunto.php&quot;},    &quot;<a href="http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.map" target="_blank">http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.map</a>&quot;);<br>

&gt;<br>
&gt; but I would like that users could be able to click on one point and get the information without using this text markers. I found information about  vector and gml layers with text format but I would like to know how to use them to work with more than one layer  or if there are other solutions that someone could recomend.<br>

<br>
</div></div>Hi. Have you considered using the WMSGetFeatureInfo control? You can<br>
check out the getfeatureinfo-control example<br>
&lt;<a href="http://trac.openlayers.org/browser/trunk/openlayers/examples/getfeatureinfo-control.html" target="_blank">http://trac.openlayers.org/browser/trunk/openlayers/examples/getfeatureinfo-control.html</a>&gt;.<br>

<div><div></div><div class="h5"><br>
Cheers,<br>
<br>
<br>
--<br>
Eric Lemoine<br>
<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex<br>
<br>
Tel : 00 33 4 79 44 44 96<br>
Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
</div></div></blockquote></div><br>