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 ] |
---|
<?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']); $subject =strip_tags($_POST['subject']); $content = strip_tags($_POST['message']); $subjectnn = $subject ; if (strpos($content, "http") !== false || strpos($content, "url") !== false || strpos($content, "www") !== false) { echo "<script>alert('Character are not allowed');window.href='index.php'</script>"; }else{ if($name == "" || $email =="" || $mobile == "" || $subject =="" || $content == "" ){ echo "<script>alert('Plesae fill all required field ex. name , email, mobile, subject, message');window.href='index.php'</script>"; }else{ $qrrryy = mysqli_query($con, "insert into submit_query (`name`, `email`,`mobile`,`subject`,`content`) values('".$name."','".$email."','".$mobile."','".$subject."','".$content."')"); if($qrrryy ==true){ $to = "contact.agnibina@gmail.com"; $subject = "One Query Submission on ". date('d-m-Y'); $message = " <html> <head> <title>Details of Query </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>Subject</th> <th>Message</th> </tr> <tr> <td>".$name."</td> <td>".$email."</td> <td>".$mobile."</td> <td>".$subjectnn."</td> <td>".$content."</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 ="Thanks for your Query Submission, We will contact you soon"; }else{ $msg ="Some technical issue occurred , please try after some times later"; } } } }else{ header('location:index.php'); } ?> <?php ?> <div class="about_mission"> <div class="container"> <div class="row align-items-center"> <div class="col-xl-12 col-md-12"> <h3>Query Submission Response</h3> <?php if(isset($msg)){ echo '<h3>'.$msg .'</h3>'; }else{ header('location:index.php'); } ?> </div> </div> </div> </div> <?php include("include/footer.php");?>