Hi,
For that, you would probably have to do it like this:
function calculate()
{
var calculated = 0;
var value = document.FORMNAME.FIELDNAME.value;
calculated = 10*value;
document.getElementById('RETURNFIELDNAME').value = calculated;
}
and
<input type="hidden" id="total">
but I am not sure whether this would work.
I would personally do the math again in PhP, based on the values that were filled out by the user. Javascript is ignored by certain browser / usersettings..
J.