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'];
?>