When a form is posted,
one can get values using the global $_POST array like this:
$first_name = $POST["first_name"];
$last_name = $POST["last_name"];
But what happens when the field name in the form is dynamic? Something like this:
$field_prefix = array("first", "last");
foreach($field_prefix as $value) {
$field_name = "{$value}name";
echo $POST["$field_name"];
}
Why is the array loop not printing out anything?