html: select 多选时只能提交一个值的原因
在drupal 6中自定义表单,设置了一个multiple select,但是在提交表单时,发现虽然选择了多个值,但是都只传递了一个值。
最初定义如下:
$fields['event']['roles'] = array(
'#title' => '用户类型',
'#type' => 'select',
'#required' => T[……]
转帖,吐槽,乱扯
在drupal 6中自定义表单,设置了一个multiple select,但是在提交表单时,发现虽然选择了多个值,但是都只传递了一个值。
最初定义如下:
$fields['event']['roles'] = array(
'#title' => '用户类型',
'#type' => 'select',
'#required' => T[……]