Questo è il codice (ord è un form con campi kiamati Q1, Q2, Q3....):
function totale()
{
var counter = 1;
var txt;
var total = 0;

while (counter <= 8)
{
txt = eval("ord.Q" + counter);
if (txt.value == "") return;
total += txt.value;
ord.Tot.value=total;
counter++;
} // Fine ciclo while
}

Qualck1 mi sa dire xkè total anzikkè fare 1 + 1 = 2 fa 1 + 1 = 11 ???