I have a form with multiple text input boxes and a total button plus a submit button on a different form.

The total button adds the numbers that have been entered then the submit button posts the information to another page.

Keeping the two forms, how can I total and send with the submit button?