I have a form that gets its names for checkboxes dynamically. Is there a way to find out the names of the unknown variables? For example:
foreach($value as $option){
$html .= "<input type='checkbox' name='".$key."[]' value='$option'>".htmlspecialchars($option)."</input>";
}
I need to know what the _POST[''] would be.
Use the predefined variable $_POST and loop over :