Contact website -- 2

Job ID: 39366519

Budget: ₹600 – ₹1,500 INR

This project is a single-page website built using Core PHP and MySQL, designed to meet the requirements of a clean, modern, and responsive web application with backend functionality. The website features a contact form for users to submit messages, which are stored in a MySQL database, and a basic admin panel for managing those messages. Key features include:

Frontend: A responsive contact form with a modern design, styled using CSS. The form includes fields for name, email, and message, with client-side validation.
Backend: Handles form submissions and stores data in a MySQL database using PDO with prepared statements to prevent SQL injection. It also includes a login system and admin panel to view submitted messages.
Admin Panel: Accessible via a login page (/contact_website/index.php?admin), where the admin can log in (using hardcoded credentials: username admin, password password123) to view a table of all submitted messages.
Security: Implements basic security measures, including input sanitization, email validation, PDO prepared statements for SQL queries, and htmlspecialchars for output to prevent XSS.
Structure: The project is organized in a single folder named contact_website, containing:
index.php: The main PHP file with both frontend and backend logic.
database.sql: SQL script to set up the MySQL database and contacts table.
setup_guide.md: Instructions for setting up and deploying the website.
documentation.md: Brief documentation for future updates.
Code Quality: The code is clear and maintainable, with logical separation of concerns within the single PHP file (database logic, form handling, and admin panel).