How to print_r $_POST array?

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

I have following table.

11条回答
  •  半阙折子戏
    2020-12-31 15:34

    $_POST is already an array, so you don't need to wrap array() around it.

    Try this instead:

    ".$_POST['id'][$i]."

    "; echo "

    ".$_POST['value'][$i]."

    "; echo "
    "; } ?>

    NOTE: This works because your id and value arrays are symmetrical. If they had different numbers of elements then you'd need to take a different approach.

提交回复
热议问题