Topic: display value double drop downlist
Hello,
I have a question regarding double dropdownlist. I have no problem in order to insert and save the data. the problem comes when on the update page, I would like to display again the value of the selected item, there is double value in the dropdown list. How to remove the double item in the drop down list ya?
Appreciate your prompt response on this matter as i need to submit my project as soon as possible.
Unit
--------
<select name="unit" size="1" onChange="redirect(this.options.selectedIndex)" >
<option selected> <?= $row['unit']?></option>
<option value="Unit 1">Unit 1</option>
<option value="Unit 2">Unit 2</option>
<option value="Unit 3">Unit 3</option>
<option value="Unit 4">Unit 4</option>
<option value="Unit 5">Unit 5</option>
<option value="Unit 6">Unit 6</option>
<option value="Unit 7">Unit 7</option>
<option value="Unit 8" >Unit 8</option>
</option>
</select>Officer
---------
<td >Officer in Charge: </td>
<td> <select name="officer" size="1">
<option selected>
<?=$row['officer']?>
</option>
<option onClick="this.options.selectedIndex"></option>
</select></td>
