Simple questions I hope but I just can't get the solution.
I have a foreach loop producing variable $checkbox.
I then have a field name, for the example approvereject
I want to create a new variable that combines the fieldname and the forecah value.
So:
$joinedvariable=approvereject.$checkbox
This does not work, I have also tried:
$joinedvariable=${approvereject_.$checkbox};
but when I echo $joinedvariable I simply get a blank result.
Lastly, I want to use $joinedvariable in a $_POST statement:
$_POST[$joinedvariable ] - will this work as I cant get it right?
$_POST($_POST is an array variable, not a "statement", or "function").