Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tie Checkbox to a Hidden Field

Status
Not open for further replies.

Jay319

Technical User
Feb 21, 2003
16
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top