MMCT TEAM
Server IP : 103.191.208.50  /  Your IP : 216.73.216.53
Web Server : LiteSpeed
System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64
User : celkcksm ( 1031)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, popen, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/celkcksm/agnibinase.org/backup-222025/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/celkcksm/agnibinase.org/backup-222025/form_submit.php
<?php 
  include("include/header.php");
    if(isset($_POST['submit'])){
        
        
        $name =mysqli_escape_string($con,$_POST['name']);
        $email =mysqli_escape_string($con,$_POST['email']);
        $mobile =mysqli_escape_string($con,$_POST['mobile']);
        $qualification =mysqli_escape_string($con,$_POST['qualification']);
        $subject =mysqli_escape_string($con,$_POST['subject']);
        $address =mysqli_escape_string($con,$_POST['address']);
        $city =mysqli_escape_string($con,$_POST['city']);
        $district =mysqli_escape_string($con,$_POST['district']);
         $course =mysqli_escape_string($con,$_POST['course']);
        $datee =mysqli_escape_string($con,$_POST['datee']);
        
        $subjectnn = $subject;
        
        
        if($name == "" || $email =="" || $mobile == "" || $qualification =="" || $course == ""   ){
            
          echo "<script>alert('Plesae fill all required field like name , email, mobile, course, qualification');window.href='index.php'</script>";
            
            
        }else{
            
           $qrrryy = mysqli_query($con, "insert into apply_now_forms (`name`, `email`,`mobile`,`qualification`,`adddress`,`city`,`state`,`subject`,`date_int`) 
                                values('".$name."','".$email."','".$mobile."','".$qualification."','".$address."','".$city."','".$district."','".$subject."','".$datee."')"); 
                                
                                
               // echo "insert into apply_now_forms (`name`, `email`,`mobile`,`qualification`,`adddress`,`city`,`state`,`subject`,`date_int`) 
               //                 values('".$name."','".$email."','".$mobile."','".$qualification."','".$address."','".$city."','".$district."','".$subject."',".$datee."'"                ;
                                
            if($qrrryy ==true){
                
                
                 
                $to = "contact.agnibina@gmail.com";
                $subject = "Application Form Submission on ". date('d-m-Y');
                
                $message = "
                <html>
                <head>
                <title>Candidate Details </title>
                <style>
                table, th, td {
                  border: 1px solid black;
                  border-collapse: collapse;
                }
                </style>
                </head>
                <body>
                <p>This email contains HTML Tags!</p>
                <table>
                <tr>
                <th>Name</th>
                <th>Email</th>
                <th>Mobile</th>
                <th>Address</th>
                <th>Qualification</th>
                <th>Applied Course</th>
                <th>Method Subject (if any)</th>
                <th>Campus visit Date</th>
                </tr>
                <tr>
                <td>".$name."</td>
                <td>".$email."</td>
                <td>".$mobile."</td>
                <td>".$address."<br>".$city."<br>".$district."</td>
                <td>".$qualification."</td>
                <td>".$course."</td>
                <td>".$subjectnn."</td>
                <td>".$datee."</td>
                </tr>
                </table>
                </body>
                </html>
                ";
                
                // Always set content-type when sending HTML email
                $headers = "MIME-Version: 1.0" . "\r\n";
                $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
                
                // More headers
                $headers .= 'From: <contact.agnibina@gmail.com>' . "\r\n";
                $headers .= 'Cc: pankaj.ssconline@gmail.com' . "\r\n";
                
                mail($to,$subject,$message,$headers);
                
                
                
                
                
                
                
                $msg ="Thak you for apply with us. we will contact you soon";
            }else{
                
                $msg ="Some technical issue occurred , please try after some times later";
            }
            
            
        }
        
              
        
        
        
        
    }else{
        
        header('location:index.php');
    }


?>



<?php
    
	
?>

<?php 

?>
         <!-- bradcam_area  -->
         
            <!--/ bradcam_area  -->
            
    <div class="about_mission">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-xl-12 col-md-12">
                    <h3>Application Form Submission</h3>
                    <?php if(isset($msg)){
    
                            echo '<h3>'.$msg .'</h3>';
                        
                        }else{
                        
                           header('location:index.php');
                        
                        } ?>
                </div>
                
            </div>
        </div>
    </div>
<?php include("include/footer.php");?>



MMCT - 2023