?
Solved

Add values in simple website form.

Posted on 2008-11-10
7
Medium Priority
?
179 Views
Last Modified: 2012-05-05
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
0
Comment
Question by:OAC Technology
  • 4
  • 2
7 Comments
 
LVL 3

Expert Comment

by:snowalps
ID: 22925778
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
 
LVL 10

Expert Comment

by:Tom
ID: 22925829
Look here to find a example same as your problem, a small javascript will fix this
http://www.mcfedries.com/JavaScript/OrderTotals.asp

0
 
LVL 2

Author Comment

by:OAC Technology
ID: 22925944
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
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
LVL 10

Expert Comment

by:Tom
ID: 22926072
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
 
LVL 2

Author Comment

by:OAC Technology
ID: 22926149
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
 
LVL 10

Accepted Solution

by:
Tom earned 2000 total points
ID: 22926636
0
 
LVL 10

Expert Comment

by:Tom
ID: 22926891
Let me know if you run into any problems.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses
Course of the Month16 days, 5 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question