how to add confirmation box in php
<p>Hi This is my php code to delete the excel file from server. Here I want to add a confirmation box before deletion process.</p>

<pre><code>&lt;?php
    $files=glob("*.csv");    
    foreach ($files as $list)
    { 
        $file=str_replace(".csv","",$list);?&gt;
            &lt;option value="&lt;?php echo $file;?&gt;"&gt;&lt;?php echo $file;?&gt;&lt;/option&gt;
&lt;?php }?&gt;
     &lt;/select&gt;

     &lt;input type="submit" name="download" value="DownLoadExcel"&gt;
     &lt;input type="submit" name="delete" value="DeleteExcel"&gt;


      &lt;?php

            if (isset($_POST['delete'])=="DeleteExcel")
             {            
                $filename=$_POST['mylist'];
                     if (!empty($filename))
                         {
                             $filename.=".csv";
                             if (file_exists($filename))
                             unlink($filename);
                        }
            }
?&gt;
</code></pre>
