hi guys. i cant get the checkbox thing to work for me. what i want is to print out a list of news, attach checkboxes to them. and on checked, echo that it is deleted, if not, echo the news attached the them. $file is obtained through file($filename). below is the code:
// ignore the if ($delete...
if ($delete == "yes") {
for ($i=0;$i<$filecount;$i++) {
if ($i == '1') { echo "deleted<br>"; }
else { echo "$file[$i]<br>"; }
}
}
// ignore the else...
else {
echo "in else<br>";
for($i=0;$i<$filecount;$i++) {
echo "<input type='checkbox' name='$i' value='1'>$file[$i]<br>";
}
}
can anyone help?