I have a dynamically created form with checkboxes and associated values. i.e. the checkbox represents a line item in a quote. I also have a text box input that parallels the checkbox. i.e. the customer would check the box, and fill in a quantity.
it looks like this <INPUT TYPE=checkbox name=qtline[]> <INPUT TYPE=text name=qtord[]>
I retrieve the array using a for statement with sizeof(qtline). The problem is that the array values do not match up. No matter what I do, even if the text box is blank, it still accounts for data, whereas the checkbox does not. So, as long as check box 1,2,3 are checked, everything works great. As soon as I start leaving off a checkbox, the values get skewed.
Any ideas?
TIA