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 3
OAC TechnologyProfessional NerdsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

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:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TomMicrosoft ISV PartnerCommented:
Let me know if you run into any problems.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.