http://php.flashwebhost.com/melbin/result.php
PHP Code:
<?php
$mark=85; // Enter Mark between 1 and 100
if ($mark > 100){
echo "$mark/100 ???... INVALID MARK";
}
else if ($mark >= 80 and $mark <= 100){
echo 'Congratulations You have got ' . $mark . ' Marks - Grade : Distinction';
}
else if ($mark >=60 and $mark <80) {
echo 'Congratulations You have got ' . $mark . ' Marks - Grade : First Class';
}
else if ($mark >=50 and $mark <60) {
echo 'Congratulations You have got ' . $mark . ' Marks - Grade : Second Class';
}
else if ($mark >=0 and $mark <50) {
echo 'Sorry You did not pass the exam. Your Mark is ' . $mark . ' - Status : FAILED';
}
else {
echo 'INVALID MARK';
}
Bookmarks