I have a folder where I keep my images, named img/. I have a table with all of my images:
<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>
How can I delete the image associated to the button with the value:"Delete image". 
 
     
     
     
     
     
     
     
     
     
     
    