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 SkipVought 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
0
0
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
 
And the javascript that does the calculation?

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
 
Hi Chris,

Yes ... the javascript does the calculation.

thanks, jay
 
And .....?

We cannot debug errors in code we cannot see or read values from a database we have no access to.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top