Skip to content

A small PHP project that takes a student’s name and three grades through a form, calculates the average using helper functions, and displays the result with a performance category (Fail / Good / Very Good / Excellent) and a pass/fail message.

Notifications You must be signed in to change notification settings

Angel1naDo/simple-php-grading-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple PHP Grading App

A small PHP web app that collects a student name and 3 grades, calculates the average, and displays:

  • pass/fail result
  • performance level (Fail / Good / Very Good / Excellent)

Features

  • Form input (name + 3 grades)
  • Average calculation
  • Result message and performance category
  • Basic validation (empty fields, grade range)

Tech Stack

  • PHP

Project Structure

  • index.php — Form page
  • results.php — Processes input and shows results
  • functions.php — Helper functions (average, performance, messages)

How to Run Locally

  1. Install PHP.
  2. Open a terminal in the project folder and run:
    php -S localhost:8000

About

A small PHP project that takes a student’s name and three grades through a form, calculates the average using helper functions, and displays the result with a performance category (Fail / Good / Very Good / Excellent) and a pass/fail message.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published