I forgot to ask if it s better to use select from text file where I have one php application and when just click on one point I get the information but the issue is that I can not change the popup style with css, because it uses a print option with a tab separation and I<br>
need to show a table with css style but have not idea how to do it here is the code of my file.<br><br> var  infecos = new OpenLayers.Layer.Text( \"infecos\", {location: \"textsedesecos.php\"}, <br>             \"<a href="http://myhost/cgi-bin/mapserv?MAP=/myfolder/mymapfile.map\">http://myhost/cgi-bin/mapserv?MAP=/myfolder/mymapfile.map\</a>");<br>
<br><br>this the textsedesecos.php file<br><?php<br>    $host = "myhost";<br>       $user = "myuser";<br>        $pass = "mypass";<br>        $db = "mydb";<br>        <br><br>        // open a connection to the database server<br>
         $connection = pg_connect ("host=$host dbname=$db user=$user password=$pass");<br>        if (!$connection)<br>        {<br>            die("Could not open connection to database server");<br>        }    <br>
    <br> <br> $querystring="select name, descr, muni, codmuni, dpto, x(the_geom) as x, y(the_geom) as y from ucsf_final2";<br><br><br>$res = pg_query($connection, $querystring);<br><br> <br><br> print("point" . "\t" . "title" . "\t" . "description" . "\t" . "iconSize" . "\t" . "icon". "\n");<br>
<br>while ($thisrec = pg_fetch_array($res)) {<br>  <br>   $x = $thisrec['x'];<br><br>   $y = $thisrec['y'];<br>   $name = $thisrec['name'];<br><br>    $descr = $thisrec['descr'];<br>  <br>   $muni = $thisrec['muni'];<br>
   $codmuni = $thisrec['codmuni'];<br>   $dpto = $thisrec['dpto'];<br><br><br><br><br>   print("$y,$x" . "\t" . "Nombre: $name" . "\t" . "Descripción:$descr<br>Municipio:$muni<br>Codigo:$codmuni<br>Departamento:$dpto" . "\t" . "14,14" . "\t" . "htt://myhost/ecos_blue24.png" .  "\n");<br>
   }<br><br><br><br><br>?><br><br><div class="gmail_quote">On Mon, Dec 10, 2012 at 4:21 PM, Karina Guardado <span dir="ltr"><<a href="mailto:kguardado@gmail.com" target="_blank">kguardado@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do you have an example please using   this part where you mention "the layers property on the control (not documented<br>

but see the source code) to specify a hidden layer by which the query is
done on". Also if you have a link to an example how to use the Post method please.<br><br>Thank you so much for your help<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Mon, Dec 10, 2012 at 4:01 PM, Phil Scadden <span dir="ltr"><<a href="mailto:p.scadden@gns.cri.nz" target="_blank">p.scadden@gns.cri.nz</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Depends on how you are using WMSGetFeatureInfo. The WMSGetFeatureInfo<br>
control does a GET.  You could use a click handler and explicitly do a<br>
request.POST.<br>
<br>
However, back to the structure -- I understand the need to have<br>
different layers with different colours (though it looks to me like you<br>
could achieve the same thing with an SLD). The question though is<br>
whether the wmsgetfeatureInfo has to made against the same layer as you<br>
are displaying. Use the layers property on the control (not documented<br>
but see the source code) to specify a hidden layer by which the query is<br>
done on.<br>
<div><div><br>
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><div class="HOEnZb"><div class="h5">-- <br>M.Sc. Karina Guardado<br>Celular: (503) 7115 2898<br><br><br><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>M.Sc. Karina Guardado<br>Celular: (503) 7115 2898<br><br><br><br>