here is what i came up,
i could insert a data into my “gender” field, but when I’m in edit/update page, i want the “gender” field only displays “Select One” value, not “male/Female”
thanks in advance
<form action='#' method='post' border='0'>
<table>
<tr>
<td>
<select name="gender" id="gender">
<option>Select One</option>
<option>Male</option>
<option>Female</option>
</select>
</td>
</tr>
<td>
<input type='hidden' name='id_number' value='<? php echo $id_number ?>' />
<input type='hidden' name='action' value='edit' />
<input type='submit' value='Edit' />
</td>
</table>
</form>
You have to add an attribute named
selected="selected"to the<option>tag that you want selected by default.