/
/
home
/
u523034047
/
domains
/
psassociate.org
/
public_html
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.60
PHP 8.3.16
Dir:
/home/u523034047/domains/psassociate.org/public_html
Edit:
/home/u523034047/domains/psassociate.org/public_html/mail.php
<?php include('admin/conn.php'); ?> <?php if (isset($_POST['submit'])) { $name = $_POST['name']; $email = $_POST['email']; $mobile = $_POST['mobile']; $subject = $_POST['subject']; $description = $_POST['description']; $sql = "insert into send_message (name,email,mobile,subject,message) values ('$name','$email','$mobile','$subject','$description')"; $query = mysqli_query($connection, $sql); $to = 'psassociate@zohomail.in'; $subject = 'Online Enquiry Details From PS Job Placement '; $message = "Name: " . $name . "\n" . "Email: " . $email . "\n" . "Mobile No: " . $mobile . "\n" . "Subject: " . $subject . "\n" . "Message: " . $description . "\n"; // $headers="From:"; // $headers = "MIME-Version: 1.0\r\n"; // $headers .= "Content-type:text/html;charset=UTF-8\r\n"; $headers = "From: " . $_POST['email'] . "\r\n"; if (mail($to, $subject, $message, $headers)) { header('location: thank-you.php'); } else { echo "Somthing Went Worng"; } } ?> <?php include('admin/conn.php'); if (isset($_POST['submit2'])) { $name = $_POST['name']; $email = $_POST['email']; $mobile = $_POST['mobile']; // $subject = $_POST['subject']; $description = $_POST['description']; $sql = "insert into employeer_reg (name,email,mobile,message) values ('$name','$email','$mobile','$description')"; $aquery = mysqli_query($connection, $sql); if (!$aquery) { echo mysqli_error($connection); //die(); } else { $to = ' psassociate@zohomail.in'; $subject = 'Online Employeer Reg Details From ps Job Placement '; $message = "Name: " . $name . "\n" . "Email: " . $email . "\n" . "Mobile No: " . $mobile . "\n" . "Subject: " . $subject . "\n" . "Message: " . $description . "\n"; // $headers="From:"; // $headers = "MIME-Version: 1.0\r\n"; // $headers .= "Content-type:text/html;charset=UTF-8\r\n"; $headers = "From: " . $_POST['email'] . "\r\n"; if (mail($to, $subject, $message, $headers)) { header('location: thank-you.php'); } else { echo "Somthing Went Worng"; } } //} } ?> <!-- submit3 handler moved to career_submit.php + phonepe/ payment flow -->
Ukuran: 2.2 KB