Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
<h2>Activity 3</h2>
<left>
<p style="font-size:25">To avail of a college scholarship, an applicant
must provide three figure: his NSAT SCORE,monthly salary of his parents and entrance examination
score. The college may either decide to accept, reject, or further study his application based on the
following conditions.</p>
</left>
</left>
<form method="post" style="font-size:20px;">
if(isset($_POST["submit"])){
if(empty($_POST["nsat_score"])){
echo"Please enter a number";
}else{
$nsat_score = $_POST["nsat_score"];
}
if(empty($_POST["parent_salary"])){
echo"Please enter a number";
}else{
$parent_salary = $_POST["parent_salary"];
}
if(empty($_POST["entrance_Xscore"])){
echo"Please enter a number";
}else{
$entrance_Xscore = $_POST["entrance_Xscore"];
}
}
echo"<h2>Parent Salary: $parent_salary<br>NSAT SCORE: $nsat_score<br>ENTRANCE
SCORE: $entrance_Xscore<br>AVERAGE: $average2</h2>";
}
?>
</form>
</left>