getting a checkbox array value from POST

后端 未结 5 1760
一整个雨季
一整个雨季 2020-11-28 13:10

i am posting an array of checkboxes. and i cant get it to work. i didnt include the proper syntax in the foreach loop to keep it simple. but it is working. i tested in by tr

5条回答
  •  孤城傲影
    2020-11-28 13:26

    // if you do the input like this
    
    
    // you can access the value directly like this:
    $invite = $_POST['invite'][$userid];
    

提交回复
热议问题