How to print_r $_POST array?

前端 未结 11 2113
我在风中等你
我在风中等你 2020-12-31 14:39

I have following table.

11条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 15:44

    $_POST is an array in itsself you don't need to make an array out of it. What you did is nest the $_POST array inside a new array. This is why you print Array. Change it to:

    foreach ($_POST as $key => $value) {
    
      echo "

    ".$key."

    "; echo "

    ".$value."

    "; echo "
    "; }

提交回复
热议问题