Add values in simple website form.

We have a simple website form that has users select prices of items they would like to buy and then e-mail us all of their choices.  For example, we have a dropdown box that allows users to choose between a $25 registration fee and a second choice that is free.   How do we have the form add this choice and other price choices together on or before submission?

Thank you
LVL 2
OAC TechnologyProfessional NerdsAsked:
Who is Participating?
 
TomConnect With a Mentor Microsoft ISV PartnerCommented:
0
 
snowalpsCommented:
i am afraid, your q did not provide me with complete clarity on your requirement.
from what i understand, you would have to prepare the body of the email in your code before sending out the actual mail. This should be done on submission of the web form.
whatever values are being selected on the form should make up the body of the email.
e.g choice selected: $25
 
this may not be what you asked for. lol.
as i said, please elaborate a little so we get a good picture of what you are looking for !
0
 
TomMicrosoft ISV PartnerCommented:
Look here to find a example same as your problem, a small javascript will fix this
http://www.mcfedries.com/JavaScript/OrderTotals.asp

0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
OAC TechnologyProfessional NerdsAuthor Commented:
Currently all the form does is submit the user's information they've entered and which choices they've selected to us through e-mail when they click the submit button.    What we would like it to do is have the form add up the prices from the options they choose and instead of e-mail it to us when the user submits it, we would like to take that added-up price and be able to submit it to paypal as a recurring fee.  When a form is submitted to paypal, it looks like it uses the "amount" value to determine what price is passed.   We would like this amount value to change based on which options they choose on the form, which is why we need the prices added together based on which options the user chooses on the form.

Let me know if you need more clarification.

Thank you again
0
 
TomMicrosoft ISV PartnerCommented:
Did you have a look at the example, with the solution?
http://www.mcfedries.com/JavaScript/OrderTotals.asp
Let me know if you need any clarification.
0
 
OAC TechnologyProfessional NerdsAuthor Commented:
Thanks, that looks like what we need.  I'm a beginner at this so the only problem is getting that example to work with dropdown boxes instead of just text boxes.  Any idea on how to do this?
0
 
TomMicrosoft ISV PartnerCommented:
Let me know if you run into any problems.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.