How to use $_GET to get multiple parameters using the same name in PHP

后端 未结 4 1222
长发绾君心
长发绾君心 2021-01-20 04:23

I\'m using checkboxes to search a mysql database I have created. As the checkboxes all use the same name, when I use $_GET, it only gets the last value in the URL.

4条回答
  •  悲哀的现实
    2021-01-20 05:00

    Name your checkbox elements "features[]" in html. That way they will be passed as an array.

提交回复
热议问题