PHP Checkbox Mark and detection
Checkbox Mark and detection
<?
$dir = ".";
$s = "";
echo "<form name=data action=?delete method=post>";
$handle = opendir($dir);
while($file = readdir($handle)) {
if ($file != "." && $file != "..") {
$s = $s+1;
echo "<INPUT TYPE=CHECKBOX NAME=file$s VALUE='$file'>$file<BR>";
}
}
echo "<INPUT type=submit class=button value='Submit'><P>";
if (isset($_GET['delete'])) foreach ($_POST as $shit) echo "$shit<BR>";
?>