MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 3.21.33.186
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home1/a1673wkz/propstonerealty.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home1/a1673wkz/propstonerealty.com/query_submit.php
<?php
include("config.php");
if(!empty($_POST['uname']) && !empty($_POST['email']) && !empty($_POST['mobile']) && !empty($_POST['message']) && !empty($_POST['status']))
{
    $uname=$_POST['uname'];
    $email=$_POST['email'];
    $mobile=$_POST['mobile'];
    $message=$_POST['message'];
    $status=$_POST['status'];
    $date=date("Y-m-d");

    $insert=$obj->query("INSERT INTO `callreq` (`need`,`uname`, `ph`, `email`, `msg`, `date`) VALUES('$status', '$uname', '$mobile', '$email', '$message', '$date')");
    if($insert)
    {
         $headers = "MIME-Version: 1.0" . "\r\n";
                $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
                // More headers
                $headers .= 'From:'.$email."\r\n";
               
               

               
                $headers .= "X-Priority: 3\r\n";
                $headers .= "X-Mailer: PHP" . phpversion() . "\r\n";

                //echo $headers;
                $email_from = $email;

                //replace with your email

                $email_to = 'info@propstonerealty.com';
                $subject = "$uname is Requested a Query";
               
                $body = '<b>Need for: </b> ' . $status . '<br>' .'<b>Name: </b> ' . $uname . '<br>' . '<b>Email:</b> ' . $email   . '<br>' . 
                '<b>Phone:</b> ' . $mobile. '<br><b>Messege:</b>'.$message;
                // echo $body;
                // die();
                $success = mail($email_to, $subject, $body, $headers);
                if($success)
                {
                 echo '<p class="alert alert-success mt-3"><i class="fa fa-check-square-o"></i> We will get in touch with you shortly.</p>';
                }
                else
                {
                   echo '<p class="alert alert-danger mt-3"><i class="fa fa-warning"></i> Error Something Wrong!</p>';
                }
       
    }
    else{
        echo '<p class="alert alert-danger mt-3"><i class="fa fa-warning"></i> Error Something Wrong!</p>';
    }
}
else{
    echo '<p class="alert alert-danger mt-3"><i class="fa fa-warning"></i> Please fill up all the field</p>';
}
?>

MMCT - 2023