I have a series of dynamic checkboxes on my form that when checked calculate to a total field on my form ... showing a running total.
I also have a hidden field on the form that I would like to tie to this checkbox. The checkbox would show the total and then send the hidden field value to the mysql database.
<input type="checkbox" id="Checkbox126" name="Checkbox12", "bkZones" value=<%=(rsZones.Fields.Item("zQuantity").Value)%>
onClick="calculate(this.form)">
<%=(rsZones.Fields.Item("zZone").Value)%>
<input name="hiddenField" type="hidden" value="<%=(rsZones.Fields.Item("zZone").Value)%>">
<strong> </strong></div></td>
</tr>
</table>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsZones.MoveNext()
Wend
%></td>
</tr>
<tr>
<th class="WADADataTableHeader">Total:</th>
<td class="WADADataTableCell"><input type="text" name="bkTotal" id="bkTotal" value="" size="32" /></td>
Thanks, Jay
I also have a hidden field on the form that I would like to tie to this checkbox. The checkbox would show the total and then send the hidden field value to the mysql database.
<input type="checkbox" id="Checkbox126" name="Checkbox12", "bkZones" value=<%=(rsZones.Fields.Item("zQuantity").Value)%>
onClick="calculate(this.form)">
<%=(rsZones.Fields.Item("zZone").Value)%>
<input name="hiddenField" type="hidden" value="<%=(rsZones.Fields.Item("zZone").Value)%>">
<strong> </strong></div></td>
</tr>
</table>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsZones.MoveNext()
Wend
%></td>
</tr>
<tr>
<th class="WADADataTableHeader">Total:</th>
<td class="WADADataTableCell"><input type="text" name="bkTotal" id="bkTotal" value="" size="32" /></td>
Thanks, Jay