I want a table that is auto computing like the ability of the microsoft excel that when I input a data in cell B1, C1 and D1( just an example on the features of excel ) it will compute an average in cell E1 which does not need to press any button to compute and tells whether if it is passing, passed or failed in cell F1( this cell f1 designates from the computation )
my aim here is to input 20 persons and input the Prelim Grade, Midterm Grade and Final Grade then the average is shown on the next cell(auto computed) then tells the equivalence of the average for example is: if the average is greater than 90 it will show the grade equivalence of 90. if it is 85 the equivalence is 1.50. if the average is 75 it will show 3.00 and if it is below 75... it will show an equivalence of 5.00
here is my scratch code
<html>
<title>grades</title>
<body bgcolor=red>
<form method=post>
<?php
echo"<table><tr><td>Name:</td><td>prelim grade</td><td>midterm grade</td><td>final grade</td><td>equivalent</td><td>Remarks</td></tr><tr><td><input type=text name=name1></td>
<td><input type=text name=name2></td><td><input type=text name=name3></td><td><input type=text name=name4></td><td><input type=text name=name5></td><tr><td>";
$ave=($_POST['name2']+$_POST['name3']+$_POST['name4'])/3;
echo"$ave<br>";
if($ave==75){
echo "passing";
}elseif($ave>76){
echo "passed";
}else
echo "failed";
?><br>
<input type=submit value=compute></body></html>
i need to auto compute the table