Get $_POST from multiple checkboxes

前端 未结 5 1384
醉酒成梦
醉酒成梦 2020-11-22 01:03

I have 1 form in with multiple checkboxes in it (each with the code):



        
5条回答
  •  后悔当初
    2020-11-22 01:11

    Edit To reflect what @Marc said in the comment below.

    You can do a loop through all the posted values.

    HTML:

    
    
    
    

    PHP:

    foreach($_POST['check_list'] as $item){
      // query to delete where item = $item
    }
    

提交回复
热议问题