you would need to have code the functionality to process the form input.
for example, if you have 2 form fields named element1 and element2. and each of these takes a numeric input, you can do simple math using the post:
<?php echo($_POST['element1'] + $_POST['element2']); ?>