/
/
home
/
u523034047
/
domains
/
commerciesconsultancy.com
/
public_html
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.130
PHP 8.3.16
Dir:
/home/u523034047/domains/commerciesconsultancy.com/public_html
Edit:
/home/u523034047/domains/commerciesconsultancy.com/public_html/mail2.php
<?php include ('admin/conn.php');?> <?php if(isset($_POST['submit'])){ $name = $_POST['name']; $email = $_POST['email']; $mobile = $_POST['mobile']; $subject = $_POST['subject']; $description = $_POST['description']; $sql="insert into send_message (name,email,mobile,subject,message) values ('$name','$email','$mobile','$subject','$description')"; $query=mysqli_query($connection,$sql); $to='info@dreamassociate.org'; $subject='Online Enquiry Details From Dream Job Placement '; $message="Name: ".$name."\n"."Email: ".$email."\n"."Mobile No: ".$mobile."\n"."Subject: ".$subject."\n"."Message: ".$description."\n"; // $headers="From:"; // $headers = "MIME-Version: 1.0\r\n"; // $headers .= "Content-type:text/html;charset=UTF-8\r\n"; $headers = "From: ".$_POST['email']."\r\n"; if(mail($to, $subject, $message, $headers)){ header('location: thank-you.php'); } else{ echo "Somthing Went Worng"; } } ?> <?php include('admin/conn.php'); if(isset($_POST['submit2'])){ $name = $_POST['name']; $email = $_POST['email']; $mobile = $_POST['mobile']; // $subject = $_POST['subject']; $description = $_POST['description']; $image=$_FILES['file']['name']; $tm_dr=$_FILES['file']['tmp_name']; $allowedExts = array("pdf", "doc"); $temp = explode(".", $_FILES["file"]["name"]); $extension = end($temp); if (($_FILES["file"]["type"] == "application/pdf") || ($_FILES["file"]["type"] == "application/doc") && ($_FILES["file"]["size"] < 500000) && in_array($extension, $allowedExts)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br>"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br>"; echo "Type: " . $_FILES["file"]["type"] . "<br>"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB<br>"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br>"; // if (file_exists("admin/doc/" . $_FILES["file"]["name"])) // { // echo $_FILES["file"]["name"] . " already exists. "; // } // else // { move_uploaded_file($_FILES["file"]["tmp_name"], "admin/doc/" . $_FILES["file"]["name"]); echo "Stored in: " . "admin/doc/" . $_FILES["file"]["name"]; $sql="insert into employeer_reg (name,email,mobile,message,document) values ('$name','$email','$mobile','$description','$image')"; $aquery=mysqli_query($connection,$sql); if(!$aquery) { echo mysqli_error($connection); //die(); } else { $to='info@dreamassociate.org'; $subject='Online Employeer Reg Details From Dream Job Placement '; $message="Name: ".$name."\n"."Email: ".$email."\n"."Mobile No: ".$mobile."\n"."Subject: ".$subject."\n"."Message: ".$description."\n"; // $headers="From:"; // $headers = "MIME-Version: 1.0\r\n"; // $headers .= "Content-type:text/html;charset=UTF-8\r\n"; $headers = "From: ".$_POST['email']."\r\n"; if(mail($to, $subject, $message, $headers)){ header('location: thank-you.php'); } else{ echo "Somthing Went Worng"; } } //} } } else { echo "Invalid file"; } } ?> <?php include('admin/conn.php'); if(isset($_POST['submit3'])){ error_reporting(-1); $name = $_POST['name']; // $dob = $_POST['dob']; // $aadhar = $_POST['aadhar']; // $qualification = $_POST['QIpurposeofenquiry']; // $fathername = $_POST['fathername']; // $mothername = $_POST['mothername']; $email = $_POST['email']; // $_SESSION['email'] = $_POST['email']; $mobile = $_POST['mobile']; // $_SESSION['mobile'] = $_POST['mobile']; //$whatsapp = $_POST['whatsapp']; $gender = $_POST['gender']; // $category = $_POST['category']; $state = $_POST['state']; $city = $_POST['city_id']; $studying = $_POST['studying']; // $Fulladdress = $_POST['address']; // $description = $_POST['description']; $image=$_FILES['file']['name']; $tm_dr=$_FILES['file']['tmp_name']; $allowedExts = array("pdf", "doc"); $temp = explode(".", $_FILES["file"]["name"]); $extension = end($temp); if (($_FILES["file"]["type"] == "application/pdf") || ($_FILES["file"]["type"] == "application/doc") && ($_FILES["file"]["size"] < 500000) && in_array($extension, $allowedExts)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br>"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br>"; echo "Type: " . $_FILES["file"]["type"] . "<br>"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB<br>"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br>"; // if (file_exists("admin/Career/" . $_FILES["file"]["name"])) // { // echo $_FILES["file"]["name"] . " already exists. "; // } //else // { move_uploaded_file($_FILES["file"]["tmp_name"], "admin/Career/" . $_FILES["file"]["name"]); echo "Stored in: " . "admin/Career/" . $_FILES["file"]["name"]; $aquery = mysqli_query($connection,"insert into users (`name`,`state`,`email`,`mobile`,`gender`,`city`,`studying`,`resume`) values('$name','$state','$email','$mobile','$gender','$city','$studying','$image')"); if(!$aquery) { echo mysqli_error($connection); //die(); } else { header('location:payumoney.php'); } // } } } else { echo "Invalid file"; } } ?>
Ukuran: 5.5 KB