I can post my form into database but I'm getting only 0 as value for the select tag, how can I get value for each select option in my database?
<select class="span6" name="test_name">
<?php
include ('include/connect.php');
$query1 = "SELECT test_name FROM mst_test ORDER BY test_name ASC";
$result = mysql_query($query1);
while(list($test_name)=mysql_fetch_array($result))
{
echo "<option value ='$test_name' selected>$test_name</option>";
}
?>
</select>