You can read the message data from the $_POST variable. If you want to know which keys are stored in an array, use array_keys () :
$postKeys = array_keys($_POST);
Alternatively, you can use foreach to scan the array:
foreach ($_POST as $key => $value) { echo "Key: $key; Value: $value\n"; }
Aviram
source share