Example from class
$attempted = $_GET["freethrowsattempted"];
$made = $_GET["freethrowsmade"];
echo $attempted;
$percentagemade = $made / $attempted;
//PUT THE PROPER CODE IN THIS FORMAT!!!!!
if ($percentagemade >= 90) {
echo ""GRRREAT JOB!"";
}
elseif ($percentagemade >= 80) {
echo "SUPER JOB!";
}
elseif ($percentagemade >= 70) {
echo "Okay!";
}
elseif ($percentagemade >= 60) {
echo "You better be big";
}
?>
PUT THIS PHP CODE INTO THE HTML CODE. You will need two text boxes and a submit button.
0 Comments:
Post a Comment
<< Home