$_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 "
";
}