title: delete image from folder PHP
body: <p>I have a folder where I keep my images, named <code>img/</code>. 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>How can I delete the image associated to the button with the value:<code>"Delete image"</code>. </p>