I am building a calorie counter/calculator and I am stuck on carrying the variable over so that it accumulates total value (java/ajax).
So if you click on the letter A you will get a list of foods in the A group and as you modify the form you will increase your caloric value. If you choose a new food group the value is zero'd out.
I need the counter to accumulate all choices from all food options. any ideas?
I am a PHP coder and very very new to
java and ajax.
FYI when you click on a letter, it calls (ajax) a .php script that generates the table based on the MySQL database.