-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmark.php
46 lines (35 loc) · 901 Bytes
/
mark.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<html>
<head>
</head>
<body>
<form method="post" >
Enter your marks<input type="number" min="0" max="100" name="score"><br />
<input type="submit" value="check your grade" name="enter">
</form>
<?php
if ($_POST['score']==NULL)
{echo "its empty";
} else{
$score=$_POST['score'];
if ($score<=35)
{echo "Your mark is : ";echo $score;
echo "Your grade is F";}
elseif ($score<=50 && $score>35 )
{echo "Your mark is : ";echo $score;
echo "Your grade is D";}
elseif ($score<=65 && $score>50 )
{echo "Your mark is : ";echo $score;
echo "Your grade is C";}
elseif ($score<=80 &&$score>65 )
{echo "Your mark is : ";echo $score;
echo "Your grade is B";}
elseif ($score<=90 &&$score>80 )
{echo "Your mark is : ";echo $score;
echo "Your grade is A";}
elseif ($score<=100 && $score>90 )
{echo "Your mark is : ";echo $score;
echo "Your grade is o";}
}
?>
</body>
</html>