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`.
| Author | Ahmed3b1 |
|---|---|
| Category | Scripts & Code / PHP Scripts / Forms |
| Price | $12 |
| Extended License | $36 |
| Likes | 1 |
| First Release | Sep 19, 2025 |
| Last Update | Sep 19, 2025 |
| Files included | .php, .css, .html, .sql, JavaScript .js |
| Software version | PHP 7.4, PHP 8.0, PHP 8.1, PHP 8.2, PHP 8.3, PHP 8.4 |
Categories
Tags
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🥇
Free LinkedIn Likes From Real Members | LinkedInLikes
Get free LinkedIn likes on your posts from real members who react by hand. No password needed: you only share a link.
Website · 12,847 views · 46 clicksWebsite · Week 49 · 12,847 views · 46 clicks
🥈
Free Medium Claps From Real Writers | MediumPlace
Free Medium claps on your stories from verified accounts of real writers, each given by hand. No bots, no Medium password, nothing to pay. Paste a link.
Website · 7,964 views · 10 clicksWebsite · Week 49 · 7,964 views · 10 clicks
🥉
Free GitHub Stars From Real Developers | GitWow
Get free GitHub stars on your repository from real developers who star by hand. No token or password, and it's free.
Website · 15,624 views · 28 clicksWebsite · Week 49 · 15,624 views · 28 clicks
#4
Free Substack Likes From Real Writers | StackRooms
Free Substack likes on your posts and Notes from verified accounts of real writers, given by hand. Free to ask, free to receive. Just share a link.
Website · 7,784 views · 2 clicksWebsite · Week 49 · 7,784 views · 2 clicks
#5
Free Twitter Likes From Real People | SupaTwitter
Free Twitter likes on your tweets from verified accounts of real people, each given by hand. No bots, no Twitter password, nothing to pay. Paste a link.
Website · 7,679 views · 4 clicksWebsite · Week 49 · 7,679 views · 4 clicks
#6
Free X Likes From Real People, Given by Hand | XFast
Free X likes on your posts from verified accounts of real people, each one given by hand. No bots, no X password, no conditions. Paste a link to start.
Website · 7,591 views · 0 clicksWebsite · Week 49 · 7,591 views · 0 clicks