I have a form that has checkboxes created by an array(the value is an item in my database), I need to add a quantity field next to the checkbox and then have the checkbox multiplied by the quantity the user inputs. I really have no idea how to go about doing this, I've tried this code below but I do not know how to assign the text input to the corresponding checkbox.
while ($row = mysql_fetch_array($result1, MYSQL_ASSOC))
<td bgcolor='#E3EAF4'><center><input type=\"checkbox\" name=\"name\" value=\"$field1\"></td>
<td bgcolor='#E3EAF4'><center><input type=\"text\" name=\"qty\" value=\"0\" size=\"2\" maxlength=\"2\"\"></td>
After the form is submitted I save the information into and object, this is the code I use to save checkboxes but do not know how to save the value of the checkbox X Qty.
Any help is appreciated.