<?php
$sum = htmlspecialchars($_POST["firstName"]) + htmlspecialchars($_POST["secondName"]);
echo 'Сумма равна ' . $sum . '.';
?>