Calculating Totals on a Form... - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Calculating Totals on a Form...

AnDricoAnDrico Posts: 1Member
Please help. I am a novice at this. I have an html form that I would like to be able to calculate total dollar amount based on four currency fields. Cuurency field are a combination of Check boxes and text boxes. Unchecked text boxes equal 0.00. Can't seem to find a script anywhere that solves my problem. If any can provide any assistance, I would be greatly appreciative.

AnDrico
[email protected]

Comments

  • compuchipcompuchip Posts: 273Member
    Suppose you have a form like this




    Now if you have a var called formTotal, you could say something like

    if (document.order.insideUS.value)
    formTotal += document.order.VAT.value;
    else
    alert("Not inside US - no VAT will be included");

    If you need more specific help let me know

    : Please help. I am a novice at this. I have an html form that I would like to be able to calculate total dollar amount based on four currency fields. Cuurency field are a combination of Check boxes and text boxes. Unchecked text boxes equal 0.00. Can't seem to find a script anywhere that solves my problem. If any can provide any assistance, I would be greatly appreciative.
    :
    : AnDrico
    : [email protected]
    :

Sign In or Register to comment.