Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question on a order form calculation code

    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();

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    It's your script we need to see.

    You have 2 sets of buttons named Signs and Balloons
    Last edited by Mr J; 05-04-2004 at 02:23 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •