[eluser]JoostV[/eluser]
Hi, I use a form_multiselect in one of my forms. However, on post, this multiselect does not retur an array, as expected. Instead, it return a string containing the last selected option.
Here's some sample code that I am using
Code:
$options['green'] = 'Green';
$options['orange'] = 'Orange';
$options['black'] = 'Black';
echo form_multiselect('multi', $options, array('orange', 'black'));
Say I select orange and black. Then, after post, $_POST['multi'] will return a string 'black'.
I am sure I am overlooking something obvious and it's driving me crazy! Can you help see what it is?