Get all variables sent with POST?

后端 未结 6 1983
孤城傲影
孤城傲影 2020-11-27 02:45

I need to insert all variables sent with post, they were checkboxes each representing an user.

If I use GET I get something like this:

?19=on&25=         


        
6条回答
  •  佛祖请我去吃肉
    2020-11-27 03:36

    you should be able to access them from $_POST variable:

    foreach ($_POST as $param_name => $param_val) {
        echo "Param: $param_name; Value: $param_val
    \n"; }

提交回复
热议问题