David Berry said:
You can use JavaScript to do this. See the free scripts at
http://javascript.internet.com under Math or Forms
Example:
<html>
<head>
<script type="text/javascript">
function calcform()
{
with (document.form1)
{ result.value = +number1.value + +number2.value}}
/*Note the extra + operator before each value. This is needed to convert the
value from a string to a number.*/
</script>
</head>
<body>
<form name="form1" action="">
Number 1 (enter number):<br />
<input type="text" id="number1" value="" size="40" /><br/>
Number 2 (enter value in dollars, e.g. 2.50) :<br />
<input type="text" id="number2" value="" size="40" /><br/>
Result:<br />
<input type="text" id="result" value="" size="40" /><br/>
<input type="button" id="Calculate" value="Calculate"
onclick="calcform()" />
<input type="reset" id="reset" value=" Clear "/>
</form>
</body>
</html>
Passing the value to another page is another matter.
If you need help to do this I can post the code for how I do it - it does
need some more JavaScript