Using Php I have wrote the drop down list box code.
for Edit employee details I have used the same code and I tried to set the value on list box but the value is not set. how to do this.
Employee Name: <select name=emp_name *$value='$name'*>
<option> -- EMPLOYEE NAME -- </option>
<?
while ($q->fetchInto($row)){
print "<option>$row[0]</option>";
}
?>
</select>
You have to set the selected option to selected while building the options like so: