...

View Full Version : Question on a order form calculation code



rklutts
05-04-2004, 01:14 PM
Hi, I got this code for making an order form that uses check boxes and radio buttons and then adds them together for a total at the bottom. The problem I am having is that I want to use multiple groups of radio buttons each having a separate value to the calculation. How do I break the bond between the sets of radio buttons that I am using so that each group will have it's on value. Right now they over write each other in the calculation step.

Rob

Here is the radio button code for the to selections on the form:

<b><font size="4" face="arial">Interior Decorations:</font></b>
<p>
<b><font size="2" face="arial">Real Estate Signs<br></b>
None, thanks
<input type="radio" name="Signs" value=none price=0.00
onclick="this.form.total.value=CheckChoice(this);">
<br>
6 Signs $60.99
<input type="radio" name="Signs" value=6 price=60.99
onclick="this.form.total.value=CheckChoice(this);">
<br>
8 Signs $80.99
<input type="radio" name="Signs" value=8 price=80.99
onclick="this.form.total.value=CheckChoice(this);">
<br>
10 Signs $100.99
<input type="radio" name="Signs" value=10 price=100.99
onclick="this.form.total.value=CheckChoice(this);">
<br><p>
<b><font size="2" face="arial">11" Interior Balloons<br></b>
None, thanks
<input type="radio" name="Balloons" value=none price=0.00
onclick="this.form.total.value=CheckChoice(this);">
<br>
20 Balloons $30.99
<input type="radio" name="Balloons" value=20 price=30.99
onclick="this.form.total.value=CheckChoice(this);">
<br>
40 Balloons $60.99
<input type="radio" name="Balloons" value=40 price=60.99
onclick="this.form.total.value=CheckChoice(this);">
<br>
80 Balloons $90.99
<input type="radio" name="Balloons" value=80 price=90.99
onclick="this.form.total.value=CheckChoice(this);">
<br>
<br>
<input type="hidden" name="hiddentotal" value=0>
<input type="hidden" name="hiddenpriorradio" value=0>
</font><font size=+1 face="arial">
Your total is: <input type="text" name="total" readonly onFocus="this.blur();

Mr J
05-04-2004, 02:20 PM
It's your script we need to see.

You have 2 sets of buttons named Signs and Balloons



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum