Advanced Contact Form icon

Advanced Contact Form

Go to Website
Hot or Not
Advanced Contact Form

Description

**Advanced Contact Form** is a professional PHP-based project (no framework) for creating a flexible and customizable contact form.    With multi-language support (EN, AR, FR, ES, DE), AJAX/non-AJAX submission, and an admin panel for managing messages and settings.

Features

- **Dynamic Fields Management**     - Add, edit, and delete form fields from the admin panel.     - Fields are stored in the database in JSON format.  

- **Multi-Language Support**     - Supports English, Arabic, French, Spanish, and German.     - Default language is set in `config/app.php`.  

- **Changable-General-color**     - Default color is set in Admin setting page.  

- **Flexible Submission**     - Supports submission via **AJAX** or standard POST (can be enabled/disabled in settings).     - AJAX mode → returns JSON response.     - Non-AJAX mode → displays success/error message on the same page.  

- **Admin Panel**     - View messages (ID, Full Name, Email, Phone, Subject, Created At).     - View full message details.     - Mark messages as read/unread.     - Delete messages.     - Manage fields and settings.  

- **Error Handling**     - Dedicated `forms/error.php` page for handling errors (404, etc.).  

- **Email Integration**     - Sends emails via PHPMailer using SMTP configuration in `config/mail.php`.     - Email includes all submitted field data.  

Requirements

- **PHP**: 7.4 or higher   - **MySQL**: 5.7+   - **Extensions**: `mbstring`, `mysqli`, `openssl`   - **PHPMailer**: included with the project   - A web server like Apache or Nginx  

Instructions

##  Installation

1. Copy the project files to your local server (XAMPP, WAMP, etc.) or a live server with PHP & MySQL support.   2. Create a new database and import `install/database.sql`.   3. Update application settings in `config/app.php` , database settings in `config/database.php`   4. Update base_url and assets route in `config/config.php`.   5. Update email (SMTP) settings in `config/mail.php`.   6. Update base path in `config/app.php` (if If you are working on localhost (XAMPP/WAMP), set:       'base_path' => 'your base path'       If you are working on real hosting (public_html), set:       'base_path' => '') .  

---

##  Usage

### Frontend Form - Access `/forms/show` to view the contact form.   - On submission:     - **AJAX enabled** → returns JSON and displays dynamic success/error messages.     - **AJAX disabled** → reloads page with success/error messages.  

### Admin Panel - Add `/admin` to the base_url to access the Admin Panel.   - `/admin/messages` → View messages.   - `/admin/message-details/{id}` → View message details.   - `/admin` → General settings (including AJAX toggle) and Manage form fields.

---

##  Email Sending

- Powered by **PHPMailer**.   - Uses sender name/email from form fields, or fallback from `mail.php`.   - Emails include all submitted form data.   - For array fields (e.g., multiple checkboxes), values are automatically converted into comma-separated text.  

---

##  Error Handling

- Any non-existing route is redirected to the error view: `forms/error.php`.  

AuthorAhmed3b1
CategoryScripts & Code / PHP Scripts / Forms
Price$12
Extended License$36
Likes1
First ReleaseSep 19, 2025
Last UpdateSep 19, 2025
Files included.php, .css, .html, .sql, JavaScript .js
Software versionPHP 7.4, PHP 8.0, PHP 8.1, PHP 8.2, PHP 8.3, PHP 8.4

External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.

Products of the Week.

Submit
Advanced Contact Form | Code Market