Thanks for the response.
I have been working with the piece of code below (thanks HalfaBee!).
$message = '';
foreach($_POST as $key => $value ) {
$message .= "$key => $value\n";
}
I have experimented with the code and am trying to get it to filter out everything where the user has not entered anything. I tried inserting the following code and it did not work.
if($_POST != "") {
$message = '';
foreach($_POST as $key => $value ) {
$message .= "$key => $value\n";
}
}
Also, I am trying to assign each $_POST to a session variable. I have not been able to get this code figured out. I was thinking that this could fall into the current foreach loop, but I have not had much luck getting any code to work.
Does anyone have any thoughts that could lead me in the right direction?
Thanks for all of your help!