:: **Zploit** v1.0 | Current Path: **/home/kreativepixelz/www/demo/contact_form_and_cv_form/**
:: Editing File: mailsend.php
<?php session_start(); if ($_SERVER["REQUEST_METHOD"] == "POST") { // Honeypot check - block if filled if (!empty($_POST['website'])) { exit('Spam detected.'); } if (!isset($_POST['captcha']) || $_POST['captcha'] != $_SESSION['captcha_answer']) { header("Location: form.php?status=error&msg=invalid_captcha"); exit(); } $name = htmlspecialchars($_POST['name']); $email = htmlspecialchars($_POST['email']); $phone = htmlspecialchars($_POST['phone']); $msg = htmlspecialchars($_POST['msg']); // Email configuration $to = "harshadvalani1993@gmail.com"; $subject = "Contact Form Submission from $name"; $body = "Name: $name\nEmail: $email\nPhone: $phone\nMessage: $msg"; $headers = "From: www.swiftind.co.in\r\n"; // Send email and redirect with status if (mail($to, $subject, $body, $headers)) { header("Location: form.php?status=success"); } else { header("Location: form.php?status=error"); } } else { header("Location: form.php?status=error"); } exit(); ?>