On one script I have the following code:
if ($row["image_2"] <> NULL)
{
echo "\n<br><br>Image: </B>" . $row["image_2"];
?><br>
Check to delete: <input name="del_image[1]" type="checkbox">
<br><img src="http://127.0.0.1/remains_final/photos/<?php echo $row['image_2']; ?>">
<br>
<?php
}
This is part of a larger chunk the queries a DB and populates this page. The checkbox is an option that the user can check or not. This entire piece of code is within a form.
Then on the next page I use this read my variables.
$del_image[0] = $_POST["del_image[0]"];
Using either:
empty($del_image[0]) or isset($del_image[0] )
The response is the same for if this is checked or not. It treats it as empty. I have even added value="" in the previous page where it is defined. Any idea on how to get this variable passed and evaluated??