EllisLab/CodeIgniter — pull request #1172 by nihaopaul (2012-03-12 08:04:28+00:00)
Title: improved form_dropdown() to detect if $name is an array instead of just ...

...a string.

```
$this->data['user_id'] = array(
'name' => 'user_id',
'id' => 'user_id',
'type' => 'hidden',
'value' => $user->id,
);
```

but with something like this for a drop down..

```
$this->data['dropdown'] = array(
'name' => 'dropdown[]',
'options' => array( … ),
'selected' => $item->selected,
'extra' => array('id' => 'adropdown' … ),
);
```

with the following code in php:

```
better_form_dropdown($this->data['dropdown']);
```