Hi All,
I'm sure some out there will solve this in an instant...or tell me it can't be done.
I'm building a registration form with a number of options and I would like the price of each option to appear one the user has selected, or deselected the option.
I have made an attempt at it, but I'm flying blind here. Below is an example of what I am after.
Once I have this for each option, i would like to place a "calculate button, or the like at the bottom that adds all of the options up"
So where Am I going wrong, or what do I need to do? maybe point me to some example code that will see me on the right track?
Thanks in advance
Dean
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
I'm sure some out there will solve this in an instant...or tell me it can't be done.
I'm building a registration form with a number of options and I would like the price of each option to appear one the user has selected, or deselected the option.
I have made an attempt at it, but I'm flying blind here. Below is an example of what I am after.
Code:
'A checkbox witha value set to "Full" when Checked
<input name="ChkFullCong" type="checkbox" id="ChkFullCong" value="Full" onClick="ConfAll" ></td>
<td height="24" valign="bottom" bgcolor="#66FF66" class="text">
$
<%
Function ConfAll
Dim ConfFull
ConfFull =""
If ChkFullCong = "Full" Then
ConfFull = ConfFull + cboConsession ' a select box with a numerical value
Else
ConfFull = ConfFull & "0"
End If
Response.Write ConfFull
End Function
%>
Once I have this for each option, i would like to place a "calculate button, or the like at the bottom that adds all of the options up"
So where Am I going wrong, or what do I need to do? maybe point me to some example code that will see me on the right track?
Thanks in advance
Dean
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."