HTML forms multi-select using GET

后端 未结 1 1897
野趣味
野趣味 2021-01-13 21:55

NOTE :

It\'s sort of hard to google for this, because \"GET\" is bringing up a lot of \"how to \'get\' the value of a form with javascript,\" etc.<

相关标签:
1条回答
  • 2021-01-13 22:21

    Works for me. Just tried

    http://www.nearby.org.uk/tmp/multi-test.html

    <select name="multiselect[]" ...
    

    Results in a URL ?multiselect%5B%5D=2&multiselect%5B%5D=3

    which will make $_GET['multiselect'] an array in PHP.

    Perhaps you have something else in your system, stripping the [] ?

    0 讨论(0)
提交回复
热议问题