<?php
$conto=count($array_dir);
echo"<table border=\"1\">";
for($b=0;$b<$conto;$b++){
echo"<tr><td width=\"300\" height=\"50\"><img src=\"folder.png\"><a href=$array_dir[$b]>".$array_dir[$b]."</a><br>";
echo"<form action='' name='deleteform".$b."' method='GET'>";
echo"<input type='submit' name='deletebut".$b."' value='Delete'>";
echo"</form></td><td>";
if(file_exists($array_dir[$b]))
{if(isset($_GET['deletebut'.$b]))
{if($_GET['deletebut'.$b]==$array_dir[$b])
{if(rmdir($array_dir[$b]))
{echo $array_dir[$b]." was removed";}
else {echo"Failed to remove directory ".$array_dir[$b];}
}
}
?> I think in this way it's properly indented but still doesn't work, so this is not the issue...