My code of drop down box is
<select name="dname">
<?php
$data = @mysql_query("select * from Department");
while ($row = mysql_fetch_assoc($data))
{
$ID = $row['dept_ID'];
$dname = $row['department_name'];
echo "<option value=$ID name=not>$dname \n";
}
?>
</select>
I retrieving department name into dropdown box.. ID - is department ID.....when user click submit i need to get selected department ID from drop down box(not value)....
I am beginner in php ....thank you