[eluser]oldrock[/eluser]
Hi..
i have fetched value from th database and populated it in the select box
with the following code
<?php
echo form_dropdown(‘team’,$teams);
?>
<select name=“team”>
<optgroup label=“0”>
<option value=“team” selected=“selected”>Australia</option>
</optgroup>
<optgroup label=“1”>
<option value=“team” selected=“selected”>Bangladesh</option>
</select>
the thing i want to set the value of option field as below dynamically
<option value=“Bangladesh”>Bangladesh</option>
help me to do that with the form_dropdown. it would be grate full to me
thanks in advance