delete image from folder PHP
<p>hello i have a folder where i keep my images! <code>"img/filename.jpg"</code> </p>

<p>And i have a table with all of my images:</p>

<pre><code>&lt;table border="3"&gt;
                    &lt;tr &gt;
                        &lt;td&gt;    
                            &lt;?php
                                $files = glob("img/*");
                                foreach($files as $file) 
                                {
                                echo "&lt;div class='divimages'&gt;"; 
                                echo '&lt;img src="'.$file.'"/&gt;';
                                echo "&lt;input type='submit' value='Delete image'/&gt;&lt;br&gt;";
                                echo "&lt;/div&gt;";  
                                }
                            ?&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;   
                &lt;/table&gt;
</code></pre>

<p>The question is: </p>

<p>How can i delete the image associated to the button with the value:<code>"Delete image"</code>. </p>
