[PHP-DB] R: [PHP-DB] Javascript

2002-10-11 Thread Riccardi Moreno
Try this: The HTML codes should look like this: function add() { var total = 0; var thisform = document.forms[0]; for (i=0;i<=thisform.elements["field[]"].length;i++) { if (!isNaN(thisform.elements["field[]"].value) total += thisform.elements["field[]"].value; } thisform.total

Re: [PHP-DB] R: [PHP-DB] Javascript

2002-10-11 Thread Shahmat Dahlan
I will try your method. I have found a way to solved this problem of mine. I have four fields I may or may not choose to fill up one out of the four fields, or I might filled up all of them. So when I leave one or two fields empty, and add all the value up, I will get NaN. For those empty fields,