我想将数据从multiselect(右侧)输入到数据库,我使用gentelella模板中的默认表单智能向导,以从multiselect I make函数获取数据:
DotProduct( v - c, p1 - c ) > dot
DotProduct( v - c, p2 - c ) > dot
}
我添加了这个:
function selectAll(theSel) {
var selLength = theSel.length;
for(i=selLength-1; i>=0; i--) {
theSel.options[i].selected = true;
}
并将代码onfinish更改为true:
<form class="form-horizontal form-label-left" action="<?=site_url('index.php/biodata/commit'); ?>" method="POST" onsubmit="selectAll(document.getElementById('region_id_assign')); selectAll(document.getElementById('region_out_id_assign')); return;">
};
如何解决它以便将数据导入数据库?
对不起,这次我是新手,请尝试使用智能向导