π Student Grade Submission Portal
A simple web-based system for submitting student details and subject marks. Built with HTML, CSS, JavaScript (Fetch API), and PHP.
π Features
Submit student information (name, ID, gender, age).
Enter marks for five subjects (Maths, English, Biology, Physics, Chemistry).
Data validation with success (green) and error (red) alerts.
View all submitted student records in a table.
Clean and user-friendly interface.
π Project Structure
βββ index.html # Main form interface
βββ roster.css # Page styling
βββ roster.js # JavaScript for form submission and alerts
βββ roster.php # Backend PHP logic for saving/viewing records
βββ README.md # Project documentation
π οΈ Technologies Used
HTML5
CSS3
JavaScript (Fetch API)
PHP
π₯ Setup Instructions Requirements
Local server with PHP (e.g., XAMPP, WAMP, MAMP)
Web browser
Steps
Clone or download the repository:
git clone https://github.com/yourusername/student-grade-submission.git
Place the folder inside your local server directory (e.g., C:\xampp\htdocs).
Start your local server (Apache).
Open your browser and go to:
http://localhost/student-grade-submission/index.html
π How It Works
Fill Out the Form β Enter student information and marks.
Submit Data β The form is sent via JavaScript (fetch) to roster.php.
PHP Processes Input β Data is validated and saved to the database.
Alerts Displayed β
Green box = successful submission
Red box = invalid input or error
View Roster β Click βView Student Rosterβ to see all stored records.
π§© Customization Ideas
Connect to a MySQL database instead of storing in a file.
Add edit/delete functionality for students.
Include GPA calculation or grade analytics.
Implement authentication for multiple users.
π License
This project is open-source and available under the MIT License.