Advanced PHP Contact Form with Database Integration
1.0.0
# نموذج الاتصال مع PHP الخلفية وإخطار البريد الإلكتروني
وصف:
يعد نظام نموذج الاتصال الآمن هذا حلاً متقدمًا قائمًا على PHP مصممًا لتوفير طريقة آمنة وقوية للمستخدمين لإرسال الاستفسارات أو الرسائل عبر موقع الويب الخاص بالشركة. يتضمن هذا المشروع ميزات مثل تكامل قاعدة البيانات، والتحقق من جانب الخادم، والتطهير، وحماية CSRF، وتنفيذ Google reCAPTCHA لضمان سلامة البيانات ومنع الثغرات الأمنية الشائعة.
سمات:
htmlspecialchars()
لمنع هجمات XSS (البرمجة النصية عبر المواقع).هيكل المجلد:
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.
التقنيات المستخدمة:
الاستخدام:
process_form.php
باستخدام بيانات اعتماد قاعدة البيانات الخاصة بك.index.php
والمفتاح السري في process_form.php
.index.php
في متصفح الويب الخاص بك لعرض نموذج الاتصال واستخدامه.رخصة:
هذا المشروع مرخص بموجب ترخيص MIT.