# Lab04: HTML Form Validation This directory contains the necessary files for a simple registration form webpage. The registration form collects various details from the user, such as their first name, last name, gender, registration number, phone number, email address, and department. ## Table of Contents - [Description](#description) - [Screenshots](#screenshots) - [Usage](#usage) --- ## Description This repository contains code for a simple registration form with HTML form validation. The form collects user information such as first name, last name, gender, phone number, email address, city, and preferred department. It then inserts this information into a MySQL database using PHP. ## Screenshots
Using Portainer to Manage containers
Sample HTML Form
HTML Form Validation warning for empty fields being present after submission
Step 6: Create database table using php
7. Fill out the registration form and click "Submit" to insert the data into the database.
Step 7: Fill out the registration form properly and click on Submit button
PHP output confirming successful data insertion in the database
8. To view the inserted data, you can use phpMyAdmin or connect to the MySQL database directly using your preferred MySQL client.
Confirming table creation in phpMyAdmin
Confirming data insertion in phpMyAdmin
9. To stop and remove the Docker containers, run: ```bash docker-compose down ```