This article/project is a problem-based question in which we will get details of a student and will generate a result.
In this problem/project, you have to make a form in html to get the following details of students:
- School Name
- Student Name
- Father’s Name
- DOB
- Gender
- Hindi Marks
- English Marks
- Maths Marks
- Physics Marks
- Chemistry Marks
Result should contain:
- A logo of central board of secondary education.
- A remark field to give remark to each subject according to following conditions:
- If marks less than 35 → "*" remark indicates fail
- If marks greater 79 → "D" remark indicates distinction
- Else → "-" remark indicates nothing
- You need to show final result below the Result according to following condition:
- If a student fails in one subject Result should be like this → Compartment in Subject name
- If a student fails in more than one subject Result should be like this → Fail
- Else Result should be like this → Pass
Let’s start to solve this problem...
To make your form make a file named "StudentDetails.php" and write below code:
Run your file and you should see something like this:
Now your form is ready! It’s time show the result to student. To show the result make a file named "Result.php" .Add following code to it:
To test this run your StudentDetails file and hit submit button, you should see your result like this:

need an explanation for this answer? contact us directly to get an explanation for this answer