How to get multiple selected values of select box in php?

后端 未结 10 2205
既然无缘
既然无缘 2020-11-22 04:18

I have a html form which has a select list box from which you can select multiple values because its multiple property is set to multiple. Consider form method is \'GET\'. T

10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 04:48

    You could do like this too. It worked out for me.

    Then take the multiple selection from following PHP code below. It print the selected multiple values accordingly.

    $shift=$_POST['selectDuration'];
    
    print_r($shift);
    

提交回复
热议问题