How to calculate a total from an html form - Programmers Heaven

Howdy, Stranger!

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


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

How to calculate a total from an html form

I am very new to javascript but I am trying to calculate a total from information entered on a form. I need something like the following:
$173 per Association Member:
None $0.00
One $173.00
Two $256.00

$125 per Guest:
None $0.00
One $125.00
Two $250.00
Three $375.00
Four $500.00


I need to be able to determine the values selected on each line a calculate the total so I can insert it into my database. I haven't found any way to go this. Any help would be appreciated


Sign In or Register to comment.