という名前の画像を保存するフォルダーがありますimg/
。すべての画像を含むテーブルがあります。
<table border="3">
<tr>
<td>
<?php
$files = glob("img/*");
foreach ($files as $file) {
echo "<div class='divimages'>";
echo '<img src="'.$file.'"/>';
echo "<input type='submit' value='Delete image'/><br>";
echo "</div>";
}
?>
</td>
</tr>
</table>
値を持つボタンに関連付けられた画像を削除するにはどうすればよいですか: "Delete image"
。