This is what I have now, can you have a look at my code to see if im the right tracks?
Code:
<html>
<title></title>
<body>
<h1>Simple Calculator</h1>
<form name="myform" action="calculation.php" method="POST">
<h2>Please Select an Option</h2>
<div>
<input type="radio" name="calculator" value="Highest"> Highest<br>
<input type="radio" name="calculator" value="Lowest" checked> Lowest<br>
<input type="radio" name="calculator" value="Average"> Average<br>
<input type="radio" name="calculator" value="Sort in ascending order"> Sort in ascending order<br>
</div>
<input type="submit" />
</form>
<h2>Insert five numbers in the form and hit submit button</h2>
<form name="form" action="calculation.php" method="post">
Firstnumber: <input name="num1" type="text" /><br>
Secondnumber: <input name="num2" type="text" /><br>
Thirdnumber: <input name="num3" type="text" /><br>
Fourthnumber: <input name="num4" type="text" /><br>
Fithnumber: <input name="num5" type="text" /><br>
<input type="submit" />
</form>
</body>
</html>
Code:
<html>
<head>
<title>Simple Math With User Input</tite>
</head>
<body>
<?php
$num1 = $_POST['num1'];
$num2 = $_POST['num2'];
$num3 = $_POST['num3'];
$num4 = $_POST['num4'];
$num5 = $_POST['num5'];
$a = $num1 + $num2 + $num3 + $num4 + $num5;
$b = $num1 - $num2 + $num3 + $num4 + $num5;
echo "The sum of the five numbers is ". $a;
echo "The difference of the five numbers is ". $b;
?>
</body>
</html>
The php isn't complete as the chosen option should also be posted to the backend php program.