更新时间:2023-02-11 19:07:21
在select中将名称修改为数组
Modified name as array in select
<select id="selectShift" name="selectShift[]" multiple="multiple">
并做到了这一点,并且有效
and did like this and it works
$shiftarraycalc = array();
$shift=$_POST['selectShift'];
if ($shift)
{
foreach ($shift as $value)
{
array_push($shiftarraycalc,$value);
}
}