Re: postgis mapfile php
<select namex="mydropdown">
<?php
for ($lt = 0; $lt < pg_numrows($myresult); $lt++) {
$id = pg_result($myresult, $lt, 0);
?>
<option value="name"> <?php echo $id;?> </option>
<?php
}
?>
</select>
<input type="checkbox" name="layer[]" value="countries" <?php echo $countries;?> >
i have this select whick takes the results from a column from a database... i haven;t put this select in a form cause it will be inside an othe form .. but i think it works perfect as it nows...
how can i take the selected value from the menu? which is ? $namex? $mydropdown??
and how can i put it here.. like ..
the_geom from ( select gid, the_geom from europe_country where name='$namex') as foo using unique gid using srid=-1