It doesn't print an array.So i quess the array is not passed.
My code which input checkboxes looks like this:
<?php
// connect to database
include ("connect.php");
//define variables
$query =("select * from details");
$result = mysql_query($query) or
die (" echo mysql_error() ");
$num_fields = mysql_num_fields($result);
$add_field =("delete");
// create a table header
echo "<table border = 1>\n";
echo "<tr align = centre>\n";
for ($i=0;$i<$num_fields;$i++)
{
echo "<th>";
echo mysql_field_name ($result,$i);
//end of table header
"</th>";
}
echo "</tr>";
echo "<th align=centre>$add_field</th>";
while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "<tr>";
while( list ($key, $value) = each($row) )
{
echo "<td>", $value ,"</td>";
}
// inserting checkboxes
echo " <td align=top align right><input type= checkbox
name=\"id[]\" value=\"".$row["id"]."\"> </td>";
echo "</tr>";
}
echo "</table>";
?>
<form action= delete.php action=post>
<input type="submit" value="Submit" name="submit">
</form>