$i was only an example. You can use the img ID as part of the ID, e.g.
then to refer to the hidden field you can use "act"+id
Code:
<input type='hidden' id='act".$row['folder_id']."' name='act[]' value='".$row['active']."'>
Comment