Hi guys,
I'm trying to do a simple form, that displays and updates information about a picture list. I'm using couple arrays, to pass the information from form, into the update queries, which update the mysql database. The problem is that one of the arrays is developed by a checkbox. When the checkbox is not selected it has a null value, which is not placed in the array. So the ending result are three arrays, two are the same, and one of them is a lot smaller. This makes a big mess with the update process. I have tried to replace the checkbox with a radio button, but this also gives me errors.
while($row = mysql_fetch_array($result))
{
...
echo "<td>Album?<br>Yes<input type=\"radio\" name=album[] value=\"Yes\" CHECKED>"
. "<br>No<input type=\"radio\" name=album[] value=\"No\"></td>";
...
Once the form is populated with 10 pictures, each has the radio button selection, but I'm able to select just one radio button for the whole form, instead of ten. Is there a way to address this issue? Thanks.