How do i get a drop-down list that is populated from the database to work?
If the drop-down i like this
<label>Item
<select name="record_status" value="<?php echo set_value('record_status',"$row->record_status"); ?>" selected="selected">
<option value="">----------------------</option>
<option value="active">Active</option>
<option value="inactive">Inactive</option>
</select>
</label>
It doesn't work well as the result when php is processed is this;
<label>Item
<select name="record_status" value="active" selected="selected">
<option value="">----------------------</option>
<option value="active">Active</option>
<option value="inactive">Inactive</option>
</select>
</label>
Yet it should be something like this
<label>Item
<select name="record_status" >
<option value="">----------------------</option>
<option value="active" selected="selected" >Active</option>
<option value="inactive">Inactive</option>
</select>
</label>
How do i achieve that?