conn0146/mtm1531-homework-2 — comment on commit 5597db39be01706375552bca1dfabc362ec8bde6
File: form.php line 35
By thomasjbradley:

This whole if statement could be inside one PHP block; it would be much easier to read. Something like:

if ($_POST['function'] == 'a') {
$total = $_POST['number1'] + $_POST['number2'];
} elseif ($_POST['function'] == 's') {
$total = $_POST['number1'] - $_POST['number2'];
...