PHP Classes

select tag

Recommend this page to a friend!

      PHP Classes blog  >  Ask difficult questio...  >  All threads  >  select tag  >  (Un) Subscribe thread alerts  
Subject:select tag
Summary:help in select tag and database
Messages:1
Author:moro
Date:2011-08-10 20:17:20
Update:2011-08-10 21:43:23
 

  1. select tag   Reply   Report abuse  
Picture of moro moro - 2011-08-10 21:43:23
hi

i have a select tag get its values from mysql database like this
<form method="post" action="">
<select name="Select1" style="width: 120px; height: 20px;">
<?php
$sql = mysql_query("SELECT * FROM `postion` order by `Postion_name` LIMIT 0 , 30 " );
while($row=mysql_fetch_array($sql)){
echo "<option value='<?php $row[Postion_name] ?>' >".$row'Postion_name']."</option>";
}
?>

</select>
<input type="submit" value="send">
</form>

and it worked successfuly but now i wanna to select any value from this select tag using php but i will print nothing

this is my code:
<?php


echo $_POST['Select1'];


?>