I know this is probably very simple, and I've even tried searching on google for sample solutions...however, I must not be asking the right question.
I have an entry form for a tournament, with a basic entry amount.
There is a checkbox on the form, when if checked, adds a set amount to the basic entry.
I want to show a total on at the bottom of the form BEFORE the user clicks the submit button. Basically this would be a toggle...if the checkbox is checked, the amount goes up. If not, it is the basic amount.
Lets say the following is true:
$basicAmount = 100.00
$scratchTeam = 40.00
$basicAmount applies to all entries. If the checkbox with name="scratchTeam" is checked, then I want the total at the bottom to show $basicAmount + $scratchTeam. However, I can't do that until the Submit button is clicked and the $_POST['scratchTeam'] is sent to the browser.