Link to home
Start Free TrialLog in
Avatar of OAC Technology
OAC TechnologyFlag for United States of America

asked on

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
Avatar of snowalps
snowalps

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 !
Look here to find a example same as your problem, a small javascript will fix this
http://www.mcfedries.com/JavaScript/OrderTotals.asp

Avatar of OAC Technology

ASKER

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
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.
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?
ASKER CERTIFIED SOLUTION
Avatar of Tom
Tom
Flag of Norway image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Let me know if you run into any problems.