Get all variables sent with POST?

后端 未结 6 1979
孤城傲影
孤城傲影 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:34

    So, something like the $_POST array?

    You can use http_build_query($_POST) to get them in a var=xxx&var2=yyy string again. Or just print_r($_POST) to see what's there.

提交回复
热议问题