danke boris,
ich weiß ich bin lästig, aber mir fehlt leider jegliches PHP vorwissen für diese Aufgabe.
PHP-Code:
if ($_POST) {
echo "Soweit funktionierts!!!";
print $deletefiles;
foreach ($deletefiles as $value) {
print $value;
//unlink($path .'/' . $value);
}
}
print "<form method='POST' action='' enctype='multipart/form-data'>";
foreach ($retval as $value) {
//$ext = pathinfo($value, PATHINFO_EXTENSION); //file extension
print "<input type='checkbox' name='deletefiles[]' value='$value'>$value<br>";
}
print "<input name='deleteBtn' type='submit' value='Löschen'>";
print "</form>";
?>
irgendwie ist $deletefiles so nicht als array vorhanden? was mach ich noch falsch?