added form validation and design

This commit is contained in:
2025-08-11 17:35:51 +05:45
parent e7c1d50e9f
commit 5fb284e4b6
91 changed files with 12072 additions and 72 deletions

View File

@@ -18,7 +18,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$subject = htmlspecialchars(trim($_POST['subject']));
$message = htmlspecialchars(trim($_POST['message']));
if (!empty($name) && !empty($user_email) && !empty($phone) && !empty($subject) && !empty($message)) {
if (!empty($name) && !empty($user_email) && !empty($phone) && !empty($subject) && !empty($message) && !empty($address)) {
try {
// Send confirmation email to user
$userMail = new PHPMailer(true);