• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • 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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

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