I was wondering if anyone could help me solve how to view $_POST requests.
What i want to do, is check all $_POST requests, not just certain ones like $_POST['name'], $_POST['post'] etc, I'd like to check every post, without being able to know the name of each POST request.
Here is what i've tried (snippet):
foreach ($_POST as $pst)
{
echo $pst;
}
//And tried the above for GET too. (but the GET I've manged to working.)
I've also tried many others, that i can think off an can come to no resolution...
You used the right solution
foreach($_POST as $key=>$value){
//> do your operation here
echo $key.': '.$value;
}
You can use $key to get the param name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With