$checkbox_elements = array('feature', 'fashion', 'beauty', 'hair', 'random');*
foreach ($checkbox_elements as $element) {*// THIS IS LINE 72
if (isset($_POST[$element])) {
***
foreach ($_POST[$element] as $id => $value) {*
echo "id: " . $id . ", value: " . $value . ".<br />";*
}*
}*
}
The above code is outputting this error, and I cannot see why:
Parse error: syntax error, unexpected T_FOREACH in /home/pl/public_html/admin.php on line 72