Answers for "how to print all post data in php"

PHP
0

get all post values in php

//Loop all POST values.
foreach ($_POST as $key => $value) {
    echo "Field ".htmlspecialchars($key)." is ".htmlspecialchars($value)."<br>";
}
Posted by: Guest on August-08-2020
2

var_dump _post php

<?php print_r($_POST); ?>
Posted by: Guest on April-12-2020
3

get post info in php

$data = json_decode(file_get_contents('php://input'), true);

// you have all in an array
Posted by: Guest on August-27-2021

Browse Popular Code Answers by Language