• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

Adding up all fields of a Form

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
benread
Asked:
benread
  • 3
  • 2
1 Solution
 
kollegovCommented:
Some code or page URL would be usefull :) to understand
what really you want to do

0
 
barakpCommented:
Use and if sentence for that pulldown menu.

If (pulldown=something)
  {
  sum=sum+1;
  }
else if (pulldown=something else)
      {
       sum=sum+2;
       }
0
 
benreadAuthor Commented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
benreadAuthor Commented:
OK, I guess the real question is, "How do I get the value of a pulldown menu option?"
0
 
barakpCommented:
do you mean how to get a value from a form field???
0
 
benreadAuthor Commented:
I don't need an answer anymore, but thanks for trying.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now