Link to home
Start Free TrialLog in
Avatar of Matt Pinkston
Matt Pinkston

asked on

adding checkbox values

Looking for some code perhaps a javascript that will envoke when a checkbok form field is clicked and the values of the checked checkboxes are added and displayed in another field.

Check Box field:
reg value=250
t1 value=70
t2 value=115
t3 value=25
t4 value=550
helmet value=145

text box field = totalfee
this should be updated anytime a check box is clicked
Avatar of Wayne Barron
Wayne Barron
Flag of United States of America image

Is it Dynamic checkboxes or static?
Dynamic = Meaning depending on the values in a Database type environment
Static = You add in each CheckBox with it's own name.

let me know?
Carrzkiss
<html>
<head>
<title>Add Check Box Values - Pravin Asar</title>
<style type="text/css">
</style>
<script language="javascript">
function UpdateTotal(theForm)
{
      var txtFld = theForm.total;
        var chkFld = theForm.chk;
      txtFld.value = 0.0;
      var cx =0;
      for (cx=0; cx < chkFld.length; cx++) {
            if (chkFld[cx].checked) {
            txtFld.value = parseFloat(txtFld.value) + parseFloat(chkFld[cx].value);
            }
      }
}
</script>
</head>
<body>
<form name="myform">
<br><input type="checkbox" name="chk" value="1" onclick="UpdateTotal(this.form);"> One Dollar
<br><input type="checkbox" name="chk" value="5" onclick="UpdateTotal(this.form);"> Five Dollar
<br><input type="checkbox" name="chk" value="10" onclick="UpdateTotal(this.form);"> Ten Dollar
<br><input type="text" readonly value="0" name="total">

</form>
</body>
</html>
Avatar of Matt Pinkston
Matt Pinkston

ASKER

PRAV

This may work but how do I write the values of the individual check boxes to a DB also which I will need to do.  I am assuming that will chance the script.
pinkstonmp:
You never answered the question?

If it is Dynamic then check out this
http://bytes.com/groups/asp/54869-dynamic-checkboxes#post202021
Very informative information.

Carrzkiss
When a form is submitted,  you will get the values.

Test  the following code,  try submitted the form.



<html>
<head>
<title>Add Check Box Values - Pravin Asar</title>
<style type="text/css">
</style>
<script language="javascript">
function UpdateTotal(theForm)
{
      var txtFld = theForm.total;
        var chkFld = theForm.chk;
      txtFld.value = 0.0;
      var cx =0;
      for (cx=0; cx < chkFld.length; cx++) {
            if (chkFld[cx].checked) {
            txtFld.value = parseFloat(txtFld.value) + parseFloat(chkFld[cx].value);
            }
      }
}
</script>
</head>
<body>
<form name="myform" method="get">
<br><input type="checkbox" name="chk" value="1" onclick="UpdateTotal(this.form);"> One Dollar
<br><input type="checkbox" name="chk" value="5" onclick="UpdateTotal(this.form);"> Five Dollar
<br><input type="checkbox" name="chk" value="10" onclick="UpdateTotal(this.form);"> Ten Dollar
<br><input type="text" readonly value="0" name="total">
<br><input type="reset" value="Reset">&nbsp;&nbsp;&nbsp;<input type="submit" value="Submit">

</form>
</body>
</html>
But since the name for each is CHK how do I access request.form("____")

I was thinking the names would be
reg value=250
t1 value=70
t2 value=115
t3 value=25
t4 value=550
helmet value=145
pinkstonmp:
Are you working with a database?
Or are your doing this hard coded?

This is very important to know, in order for me to make up a demo for you.


I am assuming you are using ASP/ASP.NET, since the question is tagged under

Web Development /Web Languages Standards/ ASP



For counter = 1 To Request.Form("chk").Count
  Response.Write "You selected " & Request.Form("chk")(counter) & "<br>"
Next
Okay I follow but it is very important that I know which checkboxes were clicked and that the value of each specific one get stored into a variable
I am going to pull out of this one, as my questions never seem to get answered
So I am unable to assist.

Good Luck in getting this done.
Carrzkiss
Carrz,

Hopefully I wil provide enough information this time.

The user will be presented a screen that they must fill out to tell us what events they will be participating in and then the total fees for those events is calculated and all this is wrtten to a DB.

Check Box field:  (Fields are added to total fees and answer for each must be stored in DB as well which I can do no problem)
reg value=250
t1 value=70
t2 value=115
t3 value=25
t4 value=550
helmet value=145

text box field = totalfee
this should be updated anytime a check box is clicked, This is the part I need help with with a javascript I am assuming but I must retain the individual names of the fields.
I do not know javascript but what I want to happen is anytime  any of the following checkbox fields )reg, t1, t2, t3, t4, helmet) is clicked the following mathmatec equation is done:
 
totalfee = reg.value + t1.value + t2.value + t3.value + t4.value + helmet.value

Here you go.
From another post I was involved in. The asker was needing the code for a ComboBox.
Another person helped out and provided the code.

I implemented this to work with a CheckBox. And it turned out great.

http://ee.cffcs.com/Q_24428891/Q_24428891.asp
code
http://ee.cffcs.com/Q_24428891/Q_24428891.zip

Good Luck
Carrzkiss
Like it but when you click the check box I wanted to see a running total field on the screen
See if this is what you are wanting to do?
http://www.madirish.net/?article=7

If it is, I am going to kick myself. (To much going on this week, and to many idea's in my head)

Good Luck
Carrzkiss
Well kinda...

Neither of these options appear to retain the name of the checkbox fields.  I would prefer they were not all the same name like in the samples.

If they are seprate names then the other functions I need to do aside from the running total are much easier.

The 2nd one allows you to name each element.

This is it, it has to be.
Each checkbox has it's own Name.

Carrzkiss
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
 
<script type="text/javascript">
total = 0;
List1 = 1;
List2 = 1;
 
function addUp(num, x)
	 {	
	 	if (x == "List1" && List1 == 1) {
			temp = document.theForm.ttl.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo + numo;
		 	document.theForm.ttl.value = nwTemp;
			List1 = 0;
			return List1;
		}
		if (x == "List1" && List1 == 0) {
			temp = document.theForm.ttl.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo - numo;
		 	document.theForm.ttl.value = nwTemp;
			List1 = 1;
		}
		if (x == "List2" && List2 == 1) {
			temp = document.theForm.ttl.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo + numo;
		 	document.theForm.ttl.value = nwTemp;
			List2 = 0;
			return List2;
		}
		if (x == "List2" && List2 == 0) {
			temp = document.theForm.ttl.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo - numo;
		 	document.theForm.ttl.value = nwTemp;
			List2 = 1;
		}
		
	}
</script>
</head>
 
<body>
<form name="theForm">
 
<input type="checkbox" name="one "onclick="addUp(10, 'List1')">List 1 (10)<br/>
<input type="checkbox" name="twn" onClick="addUp(15, 'List2')">List 2 (15)<br/>
Total Number:<input type="text" name="ttl" value=0>
</form>
 
</body>
</html>

Open in new window

Okay I am a little confused why is there two if blocks for each checkbox?
If you check the items it add's them..
If you uncheck the items then it removes the addiction (Subtracting so to speak)
You can remove the 2nd set for each one, but you loose the ability to have the
Subtracting if the Visitor decides to remove a check mark.
Which would render the program useless in every way, and piss off visitors.
And we do not want that right? Right.

This is the only thing that I could find for you, I have have a calculator
And it uses a button to do the work, this uses the OnClick.


Good Luck
Carrzkiss
ASKER CERTIFIED SOLUTION
Avatar of Pravin Asar
Pravin Asar
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It is not liking it
<html>
 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>NoVa West Lacrosse - The Premier Off-Season Lacrosse Program in Northern Virginia</title>
<link href="/styles/styles.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="JavaScript" src="http://www.NoVaWestLAX.com/myasg/stats_js.asp"> </script>
 
<script type="text/javascript">
total = 0;
reg = 1;
t1 = 1;
t2 = 1;
t3 = 1;
t4 = 1;
helmet = 1
 
function addUp(num, x)
	 {	
	 	if (x == "reg" && reg == 1) {
			temp = document.theForm.totalfee.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo + numo;
		 	document.theForm.totalfee.value = nwTemp;
			reg = 0;
			return reg;
		}
		if (x == "reg" && reg == 0) {
			temp = document.theForm.totalfee.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo - numo;
		 	document.theForm.totalfee.value = nwTemp;
			reg = 1;
		}
		if (x == "t1" && t1 == 1) {
			temp = document.theForm.totalfee.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo + numo;
		 	document.theForm.totalfee.value = nwTemp;
			t1 = 0;
			return t1;
		}
		if (x == "t1" && t1 == 0) {
			temp = document.theForm.totalfee.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo - numo;
		 	document.theForm.totalfee.value = nwTemp;
			t1 = 1;
		}
		if (x == "t2" && t2 == 1) {
			temp = document.theForm.totalfee.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo + numo;
		 	document.theForm.totalfee.value = nwTemp;
			t2 = 0;
			return t2;
		}
		if (x == "t2" && t2 == 0) {
			temp = document.theForm.totalfee.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo - numo;
		 	document.theForm.totalfee.value = nwTemp;
			t2 = 1;
		}
		if (x == "t3" && t3 == 1) {
			temp = document.theForm.totalfee.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo + numo;
		 	document.theForm.totalfee.value = nwTemp;
			t3 = 0;
			return t3;
		}
		if (x == "t3" && t3 == 0) {
			temp = document.theForm.totalfee.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo - numo;
		 	document.theForm.totalfee.value = nwTemp;
			t3 = 1;
		}
		if (x == "t4" && t4 == 1) {
			temp = document.theForm.totalfee.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo + numo;
		 	document.theForm.totalfee.value = nwTemp;
			t4 = 0;
			return t4;
		}
		if (x == "t4" && t4 == 0) {
			temp = document.theForm.totalfee.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo - numo;
		 	document.theForm.totalfee.value = nwTemp;
			t4 = 1;
		}
		if (x == "helmet" && helmet == 1) {
			temp = document.theForm.totalfee.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo + numo;
		 	document.theForm.totalfee.value = nwTemp;
			helmet = 0;
			return helmet;
		}
		if (x == "helmet" && helmet == 0) {
			temp = document.theForm.totalfee.value;
		 	tempo = parseInt(temp);
		 	numo = parseInt(num);
			nwTemp = tempo - numo;
		 	document.theForm.totalfee.value = nwTemp;
			helmet = 1;
		}
		
	}
</script>
 
 
 
 
<style>
<!--
.ApplicationTable{ font-size: 12px; font-family: Arial;}
.ApplicationCheck { font-size: 12px; font-family: Arial; width: 20px; height: 20px;}
-->
</style>
 
 
</head>
 
<body background="../images/backgrounds/tanback.jpg">
 
 
<!--#include file="../includes/inc_header.asp"-->
 
<%
temail = request.querystring("email")
 
'set connection string to local variable-I use a DSN-less connection
strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("/fpdb/registrations.mdb")
set conn = server.createobject("adodb.connection")
set rs = server.createobject("adodb.recordset")
conn.open strconn
 
mySQL="select * from registrations WHERE email='" & temail & "'"
 
rs.open mySQL, conn
if not rs.eof then
  tfirst = rs("fname")
  tlast = rs("lname")
  taddress = rs("address")
  tcity = rs("city")
  tstate = rs("state")
  tzip = rs("zip")
  tschool = rs("school")
  tphone = rs("phone")
  tcell = rs("cell")
  tcontact_first = rs("contact_fname")
  tcontact_last = rs("contact_lname")
  tmm = rs("bday_mm")
  tdd = rs("bday_dd")
  tyyyy = rs("bday_yyyy")
  tgrade = rs("grade")
  tstats = rs("stats")
  tgpa = rs("gpa")
  tposition = rs("position")
  tdomhand = rs("domhand")
  theightft = rs("heightft")
  theightinch = rs("heightinch")
end if
 
%>
 
<!----- BODY ------>
<table border="0" cellpadding="0" cellspacing="0" width="975" align="center" background="/images/backgrounds/rams-08-bg.jpg" height="70%">
	<tr>
		<td style="border-left: 1px solid #000000; border-right: 1px solid #000000; ">
		<div align="center">
			<table border="0" cellpadding="2" cellspacing="6" width="90%" height="98%">
				<tr>
					<td bgcolor="#FFFFFF" width="80%" valign="top">
					<table border="0" width="100%" id="table3" cellpadding="10">
						<tr>
							<td bgcolor="#E6E6E6" style="border: 2px solid #AFA27F">
							<p align="center"><b>
							<font face="Arial" style="font-size: 14px">NoVa West 
							Crusaders Select Team Information Collection</font></b></td>
						</tr>
					</table>
					<div align="center">
						<table border="0" width="90%" id="table4" height="85%" cellpadding="4">
							<tr>
								<td bgcolor="#E6E6E6" style="border: 1px solid #AFA27F" valign="top">
								<form method="POST" action="reg4_thanks_new.asp" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
									<table border="0" width="100%" id="table10" cellspacing="1" cellpadding="3">
										<tr>
											<td bgcolor="#FFFFFF">
											<p align="left">
									<font face="Arial" style="font-size: 13px">
									<img border="0" src="../images/crusaders_mini.JPG" width="125" height="87" align="right">Congratulations 
									on your selection to the NoVa West Crusaders 
									High School Summer Select Lacrosse Team. 
									Each Crusader player is required to play X 
									of the X Crusaders tournaments to be eligibe 
									for selection onto the Outbreak Team. </font></p>
											</td>
										</tr>
									</table>
									<div align="center">
									<table border="0" width="98%" cellspacing="1" cellpadding="3" id="table5">
										<tr>
											<td bgcolor="#FFFFFF" width="15%">
											<font face="Arial" style="font-size: 11px">
											<b>Player:</b></font></td>
											<td bgcolor="#FFFFFF" width="83%">
											<table border="0" width="100%" cellspacing="0" id="table7">
												<tr>
													<td width="10%">
													<font face="Arial" style="font-size: 11px" color="#666666">
													first</font></td>
													<td width="30%">
											<!--webbot bot="Validation" s-display-name="First Name of Camper" b-value-required="TRUE" --><input type="text" name="fname" size="14" style="font-family: Arial; font-size: 11px; color: #000080" value="<%=(tfirst)%>"></td>
													<td width="10%">
													<font face="Arial" style="font-size: 11px" color="#666666">
													last</font></td>
													<td width="100">
											<!--webbot bot="Validation" s-display-name="Last Name of Camper" b-value-required="TRUE" --><input type="text" name="lname" size="19" style="font-family: Arial; font-size: 11px; color: #000080" value="<%=(tlast)%>"></td>
												</tr>
											</table>
											</td>
										</tr>
										<tr>
											<td valign="top" bgcolor="#FFFFFF" width="15%">
											<font face="Arial" style="font-size: 11px">
											<b>Address:</b></font></td>
											<td bgcolor="#FFFFFF" width="83%">
											<table border="0" width="100%" cellspacing="0" id="table8">
												<tr>
													<td width="10%">
													<font face="Arial" style="font-size: 11px" color="#666666">
													street</font></td>
													<td colspan="3">
											<!--webbot bot="Validation" s-display-name="Address of Camper" b-value-required="TRUE" --><input type="text" name="address" size="49" style="font-family: Arial; font-size: 11px; color: #000080" value="<%=(taddress)%>"></td>
												</tr>
												<tr>
													<td width="10%">
													<font face="Arial" style="font-size: 11px" color="#666666">
													city</font></td>
													<td colspan="3">
											<!--webbot bot="Validation" s-display-name="City of Camper" b-value-required="TRUE" --><input type="text" name="city" size="24" style="font-family: Arial; font-size: 11px; color: #000080" value="<%=(tcity)%>"></td>
												</tr>
												<tr>
													<td width="10%">
													<font face="Arial" style="font-size: 11px" color="#666666">
													state</font></td>
													<td width="30%">
											<select size="1" name="state" style="font-family: Arial; font-size: 11px; color: #000080">
											<option>VA</option>
											<option>MD</option>
											<option>DC</option>
											</select></td>
													<td width="10%">
													<font face="Arial" style="font-size: 11px" color="#666666">
													zip</font></td>
													<td>
											<!--webbot bot="Validation" s-display-name="Zip of Camper" b-value-required="TRUE" --><input type="text" name="zip" size="9" style="font-family: Arial; font-size: 11px; color: #000080" value="<%=(tzip)%>"></td>
												</tr>
											</table>
											</td>
										</tr>
										<tr>
											<td valign="top" bgcolor="#FFFFFF" width="15%">
											<font face="Arial" style="font-size: 11px">
											<b>Team Fee:</b></font></td>
											<td bgcolor="#FFFFFF" width="83%">
											<table border="0" width="100%" cellspacing="0" id="table13">
												<tr>
													<td width="6%">
													<font face="Arial" size="2">
													<input class="ApplicationCheck" type="checkbox" value="250" name="reg" onclick="addUp(250, 'reg')"></font></td>
													<td width="62%">
											<font face="Arial" style="font-size: 11px" color="#666666">&nbsp;Registration, 
											Uniform &amp; Coaches Fees</font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">
											$250</font></td>
												</tr>
											</table>
											</td>
										</tr>
										<tr>
											<td valign="top" bgcolor="#FFFFFF" width="15%">
											<font face="Arial" style="font-size: 11px">
											<b>Tournaments:</b></font></td>
											<td bgcolor="#FFFFFF" width="83%">
											<table border="0" width="100%" cellspacing="0" id="table12">
												<tr>
													<td width="6%">
													<font face="Arial" size="2">
													<input class="ApplicationCheck" type="checkbox" value="70" name="t1" onclick="addUp(70, 't1')"></font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">&nbsp;Summer 
											Exposure</font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">
											6/20-6/21</font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">
											$70</font></td>
												</tr>
												<tr>
													<td width="6%">
													<font face="Arial" size="2">
													<input class="ApplicationCheck" type="checkbox" value="115" name="t2" onclick="addUp(115, 't2')"></font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">&nbsp;UP 
											Summer Shootout **</font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">
											6/27-6/28</font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">
											$115</font></td>
												</tr>
												<tr>
													<td width="6%">
													<font face="Arial" size="2">
													<input class="ApplicationCheck" type="checkbox" value="25" name="t3" onclick="addUp(24, 't3')"></font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">&nbsp;NoVa 
											West Shootout</font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">
											7/18</font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">
											$25</font></td>
												</tr>
												<tr>
													<td width="6%">
													<font face="Arial" size="2">
													<input class="ApplicationCheck" type="checkbox" value="0" name="t4" onclick="addUp(0, 't4')"></font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">&nbsp;Battle 
											of the Hotbeds ** &amp; ***</font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">
											7/26 - 29</font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">
											$550</font></td>
												</tr>
												<tr>
													<td width="6%">
													&nbsp;</td>
													<td width="93%" colspan="3">
											<font face="Arial" style="font-size: 11px" color="#666666">&nbsp;** 
											These tournaments are mandatory for 
											be considered for Outbreak</font></td>
												</tr>
												<tr>
													<td width="6%">
													&nbsp;</td>
													<td width="93%" colspan="3">
											<font face="Arial" style="font-size: 11px" color="#666666">&nbsp;*** 
											This tournament must be paid 
											directly to the tournament website:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a class="toplinks2" target="_blank" href="https://register.camperreg.com/campereg_hotbedslacrosse.nsf/66b56bbacfda35b6872573c4000234ac/107bdce5ba4ebe838725753f000bf7e5?OpenDocument">
											Click Here</a></font></td>
												</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td valign="top" bgcolor="#FFFFFF" width="15%">
											<font face="Arial" style="font-size: 11px">
											<b>Optional:</b></font></td>
											<td bgcolor="#FFFFFF" width="83%">
											<table border="0" width="100%" cellspacing="0" id="table11">
												<tr>
													<td width="6%">
													<font face="Arial" size="2">
													<input class="ApplicationCheck" type="checkbox" value="145" name="helmet" onclick="addUp(145, 'helmet')"></font></td>
													<td width="62%">
											<font face="Arial" style="font-size: 11px" color="#666666">&nbsp;Crusaders 
											Helmet &amp; Decals (Paid separate, 
											check to order!)</font></td>
													<td width="31%">
											<font face="Arial" style="font-size: 11px" color="#666666">
											$145</font></td>
												</tr>
											</table>
											</td>
										</tr>
										<tr>
											<td valign="top" bgcolor="#FFFFFF" width="15%">
											<font face="Arial" style="font-size: 11px">
											<b>Total:</b></font></td>
											<td bgcolor="#FFFFFF" width="83%">
											&nbsp;<!--webbot bot="Validation" s-display-name="Last Name of Camper" b-value-required="TRUE" --><input type="text" name="totalfee" size="19" style="font-family: Arial; font-size: 11px; color: #000080" value="<%=(yfee)%>"></td>
										</tr>
										<tr>
											<td valign="top" bgcolor="#FFFFFF" colspan="2">
											<b>
											<font style="FONT-SIZE: 11px" face="Arial">
											WAIVER AND RELEASE OF LIABILITY<br>
											</font>
											<font face="Arial" style="font-size: 5px">&nbsp;&nbsp;&nbsp;
											</font></b>
											<font style="FONT-SIZE: 11px" face="Arial">
											<br>
											1.<b> Waiver and Release. </b>The 
											risk of injury from participating in 
											lacrosse is significant and includes 
											serious injury, including permanent 
											disability, death, and other losses, 
											both to me and my property. I 
											understand that these injuries and 
											losses might result not only from my 
											actions, but the actions, inactions 
											or negligence of other persons. I 
											agree that I am responsible for my 
											safety while participating in 
											lacrosse. I ASSUME ALL RISKS 
											CONNECTED WITH ANY INJURY OR LOSS 
											RELATED TO OR ARISING OUT OF MY 
											PARTICIPATION IN LACROSSE. I am 
											aware of the risks of participating 
											in lacrosse and I am willing to 
											assume them. Accordingly, I release, 
											waive, and hold harmless NoVa West 
											Lacrosse. and each of these persons 
											affiliates, subsidiaries, officers, 
											directors, employees, agents, 
											coaches, trainers, doctors, 
											officials, volunteers, organizers, 
											sponsors, and all other persons, 
											from all claims by me for any 
											liability, injury, loss or damage in 
											any way related to or arising out of 
											my participation in lacrosse camp. I 
											intend for this waiver and release 
											to also apply to any next of kin, 
											relatives, personal representatives, 
											heirs, beneficiaries, or assigns who 
											might pursue any legal action on my 
											behalf or in connection with any 
											injury to me.<br>
											</font><b>
											<font face="Arial" style="font-size: 5px">&nbsp;&nbsp;&nbsp;
											</font></b>
											<font style="FONT-SIZE: 11px" face="Arial">
											<br>
											2. <b>Medical Emergency. </b>I 
											understand that NoVa West Lacrosse, 
											will make every effort to notify the 
											campers parent or legal guardian of 
											a medical emergency involving their 
											camper. Notwithstanding this, as 
											parent or legal guardian, I/we give 
											permission to NoVa West Lacrosse, 
											and its agents, to, at any time they 
											believe an emergency exists, 
											provide, facilitate, and consent to 
											the provision of any first aid, 
											doctors care, dental care, 
											hospitalization, or medical care 
											that camper may need because of an 
											injury that the camper may suffer 
											while participating in lacrosse 
											camp. I/we agree to be financially 
											responsible for any medical bills 
											incurred as a result of medical 
											treatment provided to the camper and 
											understand that NoVa West Lacrosse, 
											does not carry any medical insurance 
											for campers. I understand it is my 
											responsibility to maintain 
											sufficient accident and medical 
											insurance.<br>
											</font><b>
											<font face="Arial" style="font-size: 5px">&nbsp;&nbsp;&nbsp;
											</font></b>
											<font style="FONT-SIZE: 11px" face="Arial">
											<br>
											<b>I HAVE READ THIS WAIVER AND 
											RELEASE CAREFULLY. I UNDERSTAND IT 
											AND I AM SIGNING IT VOLUNTARILY. I 
											certify that as parent/guardian of 
											the camper, I consent to his/her 
											agreement to be bound by each of the 
											terms and conditions in this waiver 
											and release. I also certify that I 
											am bound by each of the terms and 
											conditions in this waiver and 
											release.<br>
											</b></font><b>
											<font face="Arial" style="font-size: 5px">&nbsp;&nbsp;&nbsp;
											<br>
&nbsp;</font></b><table class="ApplicationTable" cellSpacing="0" cellPadding="0" width="100%" border="0">
												<tr vAlign="top">
													<td width="56%" colSpan="4">
													<b>Parent / Guardian 
													Signature</b> *</td>
													<td width="1%">
													<img height="1" alt="" src="ecblank.gif" width="12" border="0"><br>
&nbsp;</td>
												</tr>
												<tr vAlign="top">
													<td width="1%">
													<img height="1" alt="" src="ecblank.gif" width="12" border="0"><br>
&nbsp;</td>
													<td width="36%" colSpan="2">
													<img height="1" alt="" src="ecblank.gif" width="1" border="0"><br>
													<font face="Arial" size="2">
													<input type="hidden" value="1" name="%%Surrogate_SignSignature">
													<input class="ApplicationCheck" type="checkbox" value="1" name="SignSignature">yes, 
													I agree with the terms of 
													this waiver</font></td>
												</tr>
											</table>
											</td>
										</tr>
									</table>
									</div>
									<p align="center">
									<input type="submit" value="Submit" name="B1" style="float: left; font-family: Arial; font-size: 11px"></p>
								</form>
								</td>
							</tr>
						</table>
					</div>
					<td bgcolor="#FFFFFF" width="20%" valign="top">
<table border="0" cellpadding="2" cellspacing="0" width="90%" align="center" style="border: 1px solid #C0C0C0">
						
					</table>
 
<!--webbot bot="Include" U-Include="../includes/inc_weather.htm" TAG="BODY" -->&nbsp;
<!--#include file="../calendar.asp"-->
 
<p align="center">&nbsp;<!--webbot bot="HitCounter" i-image="5" I-ResetValue="0" I-Digits="5" U-Custom="/_private/counter60.gif" -->
 
 
					</table>					
					
					
					</td></span></font>
 
 
</td>
				</tr>
				</table>
		</div>
		</td>
	</tr>
</table>
 
<!----- FOOTER ------>
<table border="0" cellpadding="0" cellspacing="0" width="975" align="center" bgcolor="#E3E3E3" height="20">
	<tr>
		<td style="border-left: 1px solid #000000; border-right: 1px solid #000000; border-bottom: 1px solid #000000; ">		<p align="center">
		<font face="Arial" style="font-size: 11px" color="#666666"></font></td>
	</tr>
</table>
 
</body>
 
</html>

Open in new window

That is a lot of code there.
Give [pravinasar:] example a try and see if it works better for you.
Looks to be way less coding.