[eluser]elmne[/eluser]
Thanks,
How then do i get the default value in a dropdown box to be displayed?
Is this correct?
Code:
<select name="select" value="<?php echo set_value('customer_type',"$row->customer_type"); ?>" >
<option>*************</option>
<option value="active">Active</option>
<option value="inactive">Inactive</option>
</select>
The value in the database table may be NULL.
So the set value needs to either set the default;
- active
- inactive
- NULL (empty)
How do i set the default drop down value
and if it's NULL, how do i reflect that in the drop down by not having anything selected/set ?