Solved

Adding up all fields of a Form

Posted on 1997-08-16
6
177 Views
Last Modified: 2012-08-14
I'm trying to add up the values of each item in my form.  the problem is that I can't add in the value of a pulldown menu.  I have to have it added to the final sum.  Can anyone help me?
0
Comment
Question by:benread
  • 3
  • 2
6 Comments
 
LVL 10

Expert Comment

by:kollegov
ID: 1268989
Some code or page URL would be usefull :) to understand
what really you want to do

0
 
LVL 1

Accepted Solution

by:
barakp earned 100 total points
ID: 1268990
Use and if sentence for that pulldown menu.

If (pulldown=something)
  {
  sum=sum+1;
  }
else if (pulldown=something else)
      {
       sum=sum+2;
       }
0
 

Author Comment

by:benread
ID: 1268991
ok, here's the problem... I have nine selections, with values from 1 to 9 we'll say, and I need to put all of this in a single variable.  I'm sorry for not saying that earlier.
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

Author Comment

by:benread
ID: 1268992
OK, I guess the real question is, "How do I get the value of a pulldown menu option?"
0
 
LVL 1

Expert Comment

by:barakp
ID: 1268993
do you mean how to get a value from a form field???
0
 

Author Comment

by:benread
ID: 1268994
I don't need an answer anymore, but thanks for trying.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

777 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