Welcome aboard Bud_M. The
reset button doesn't clear because it resets the form to the loaded page state. You can do this with Javascript or with PHP by setting the values to ''. So you'd change the reset button to a submit button, and something like
<input type="submit" name="clearme" value="Clear Form">
if (isset($_POST['clearme'])) {
// for each form field, set to ''
}
Javascript would be similar, except it wouldn't actually submit, but then it becomes Javascript-dependent.
To display two decimal places, use
money_format() [php.net] or sprintf, I prefer sprintf:
$total = sprintf("%.2f",$total);
You can also do calculations on the right in either:
$total = sprintf("%.2f",($field1*$field2)+$field3+$field4+$field5);