I have a mysql database that contains fields for "zZones" and "zQuantity" Each Zone has a Quantity attached to it.
I have an insert form with checkboxes. When you click a checkbox it activates a javascript that puts the total Quantity of the checkboxes selected into a total field.
My problem is that every checkbox is inserting the first quantity value from the database.
How can I write the following so that it matches the zone to the correct quatity value ...
thanks, jay
I have an insert form with checkboxes. When you click a checkbox it activates a javascript that puts the total Quantity of the checkboxes selected into a total field.
My problem is that every checkbox is inserting the first quantity value from the database.
How can I write the following so that it matches the zone to the correct quatity value ...
Code:
<input type="checkbox" name="ZATF1" id="ZATF1" onclick="calculate()" value="<%=(rsZones.Fields.Item("zQuantity").Value)%>"/>
thanks, jay