[postgis-users] postgis mapfile php

nickthegreek- nickthegreek_ at hotmail.com
Mon Apr 7 16:39:00 PDT 2008


<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
-- 
View this message in context: http://www.nabble.com/postgis-mapfile-php-tp16530438p16543003.html
Sent from the PostGIS - User mailing list archive at Nabble.com.




More information about the postgis-users mailing list