Advanced PHP Contact Form with Database Integration
1.0.0
# Contact Form with PHP Backend and Email Notification
Description:
This Secure Contact Form System is an advanced PHP-based solution designed to provide a secure and robust way for users to send inquiries or messages through a company website. This project includes features such as database integration, server-side validation, sanitization, CSRF protection, and Google reCAPTCHA implementation to ensure data integrity and prevent common security vulnerabilities.
Features:
htmlspecialchars()
to prevent XSS (Cross-Site Scripting) attacks.Folder Structure:
Folder Structure:
- **css:** Contains CSS files for styling the contact form.
- **docs:** Markdown files containing explanations on how to set up PHPMailer, Google reCAPTCHA, and CSRF protection.
- **images:** Screenshots of the index.php page and other pages.
- **js:** Includes JavaScript files for client-side functionality.
- **vendor:** Contains third-party libraries like PHPMailer.
- **index.php:** PHP file for the contact form interface.
- **process_form.php:** PHP file for processing form submissions and sending email notifications.
- **README.md:** Documentation file explaining project setup and usage.
- **tables.sql:** SQL file for creating the database table in MySQL.
- **thank_you.php:** PHP file for the thank you page.
Technologies Used:
Usage:
process_form.php
with your database credentials.index.php
and secret key in process_form.php
.index.php
file in your web browser to view and use the contact form.License:
This project is licensed under the MIT License.