Server IP : 103.53.40.154 / Your IP : 3.15.239.145 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/ntimachinery.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php //include('admin/config/function.php'); if(isset($_POST['email']) && isset($_POST['phone']) ) { //$name = mysqli_real_escape_string($conn,$_POST['name']); $name =$_POST['name']; //$email=mysqli_real_escape_string($conn,$_POST['email']); $email=$_POST['email']; $phone=$_POST['phone']; //$countrycode=$_POST['countrycode']; $message=$_POST['message']; $data=array( 'name'=>$name, 'email'=>$email, 'phone'=>$phone, //'subject'=>"Quick Enquiry", 'message'=>$message ); //$res=insert_data('tbl_contact',$data); //if($res){ $msg=' <html> <table width="600" class="table" style="border:1px solid #333; text-align: center;"> <thead style="background-color: blue;color: #fff;"> <tr> <th colspan="4" style="padding: 10px 0"> Quick Enquiry Information </th> </tr> </thead> <tbody> <tr> <td style="padding: 10px 0;border: 1px solid">Name</td> <td style="padding: 10px 0;border: 1px solid">'.trim($name).' </td> </tr> <tr> <td style="padding: 10px 0;border: 1px solid">Email ID</td> <td style="padding: 10px 0;border: 1px solid">'.trim($email).' </td> </tr> <tr> <td style="padding: 10px 0;border: 1px solid">Phone</td> <td style="padding: 10px 0;border: 1px solid">'.trim($phone).' </td> </tr> <tr> <td style="padding: 10px 0;border: 1px solid">Message</td> <td style="padding: 10px 0;border: 1px solid">'.trim($message).' </td> </tr> </tbody> </table> </html>'; // $msg='Name:-'.$name; // $msg.='Email Id:-'.$name; // $msg.='Phone:- +'.$countrycode.'-'.$phone; // $msg.='Message:-'.$name; $to = 'anisahmed@sheebaequipments.in'; $service1 = "Quick Enquiry Information"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= 'From: <anisahmed@sheebaequipments.in>' . "\r\n"; $headers .= 'Cc: anisahmed@sheebaequipments.in' . "\r\n"; $mail = mail($to,$service1,$msg,$headers); if($mail){ header('Location: contact-us.php?succ'); //echo json_encode(true); }else{ header('Location: contact-us.php?failed'); //echo json_encode(false); } // } } ?> <?php include('conn/config.php'); $contact_us_details=header_tags('contact-us'); $contact_details=contact_det(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title><?php echo $contact_us_details['page_title']; ?></title> <meta name="description" content="<?php echo $contact_us_details['message']; ?>"> <meta name="robots" content="index, follow" /> <meta name="language" content="english"> <?php include 'inc/top-links.php';?> </head> <body> <div class="page-wrapper"> <?php include 'inc/header.php';?> <!--Page Title--> <section class="page-title" style="background-image:url(<?=BASE_URL?>images/background/10.jpg);"> <div class="auto-container"> <div class="inner-container clearfix"> <div class="title-box"> <h1>Contact Us</h1> </div> <ul class="bread-crumb clearfix"> <li><a href="<?=BASE_URL?>">Home</a></li> <li>Contact Us</li> </ul> </div> </div> </section> <!--End Page Title--> <!-- Contact Page Section --> <section class="contact-page-section"> <div class="auto-container"> <div class="row"> <!-- Form Column --> <div class="form-column col-lg-7 col-md-12 col-sm-12"> <div class="inner-column"> <div class="sec-title"> <h2>Contact Us</h2> </div> <div class="contact-form"> <form method="post" action="" id="contact-form"> <div class="row"> <div class="form-group col-lg-6 col-md-12 col-sm-12"> <input type="text" name="name" placeholder="Name" required=""> </div> <div class="form-group col-lg-6 col-md-12 col-sm-12"> <input type="text" name="phone" placeholder="Phone" required=""> </div> <div class="form-group col-lg-6 col-md-12 col-sm-12"> <input type="text" name="company" placeholder="Company"> </div> <div class="form-group col-lg-6 col-md-12 col-sm-12"> <input type="email" name="email" placeholder="Email" required=""> </div> <div class="form-group col-lg-6 col-md-12 col-sm-12"> <h4 type="text" id="mainCaptcha"></h4> <p><i class="fa fa-refresh" onclick="Captcha();"></i></p> <input type="text" id="txtInput" required=""> </div> <div class="form-group col-lg-12 col-md-12 col-sm-12"> <textarea name="message" placeholder="Massage"></textarea> </div> <div class="form-group col-lg-12 col-md-12 col-sm-12"> <button class="theme-btn btn-style-three" type="submit" name="submit-form">Submit</button> </div> </div> </form> </div> <div class="contact-info"> <div class="row"> <div class="info-block col-lg-4 col-md-4 col-sm-12"> <div class="inner"> <h4>Location</h4> <p><?=$user_details['address']?></p> </div> </div> <div class="info-block col-lg-4 col-md-4 col-sm-12"> <div class="inner"> <h4>Call Us</h4> <p>+91 <?=$user_details['mobile']?></p> <p>+91 <?=$user_details['whatsapp_number']?></p> </div> </div> <div class="info-block col-lg-4 col-md-4 col-sm-12"> <div class="inner"> <h4>Email</h4> <p><a href="#"><?=$user_details['email']?></a></p> </div> </div> </div> </div> </div> </div> <div class="map-column col-lg-5 col-md-12 col-sm-12"> <div class="inner-column"> <div class="map-outer"> <iframe src="<?=$user_details['google_map']?>" height="900"></iframe> </div> </div> </div> </div> </div> </section> <!--End Contact Page Section --> <!--End Clients Section--> <script type="text/javascript"> $( '#any-image-comparison-slider-27' ).anyImageComparisonSlider(); $( '#range-slider' ).on( 'input', function( e ) { $( '#any-image-comparison-slider-27' ).anyImageComparisonSlider( 'controlByExternalSource', true, e.target.value, e.target.max ); } ); $( '#range-slider' ).on( 'change', function( e ) { $( '#any-image-comparison-slider-27' ).anyImageComparisonSlider( 'controlByExternalSource', false ); } ); </script> <script> Captcha(); function Captcha(){ var alpha = new Array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z', 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z', '0','1','2','3','4','5','6','7','8','9'); var i; for (i=0;i<6;i++){ var a = alpha[Math.floor(Math.random() * alpha.length)]; var b = alpha[Math.floor(Math.random() * alpha.length)]; var c = alpha[Math.floor(Math.random() * alpha.length)]; var d = alpha[Math.floor(Math.random() * alpha.length)]; var e = alpha[Math.floor(Math.random() * alpha.length)]; var f = alpha[Math.floor(Math.random() * alpha.length)]; var g = alpha[Math.floor(Math.random() * alpha.length)]; } var code = a + ' ' + b + ' ' + ' ' + c + ' ' + d + ' ' + e + ' '+ f + ' ' + g; document.getElementById("mainCaptcha").innerHTML = code document.getElementById("mainCaptcha").value = code } function ValidCaptcha(){ var string1 = removeSpaces(document.getElementById('mainCaptcha').value); var string2 = removeSpaces(document.getElementById('txtInput').value); if (string1 == string2){ return true; }else{ alert ("Invalid Captcha"); return false; } } function removeSpaces(string){ return string.split(' ').join(''); } $(document).ready(function () { $('#contactus').validate({ // initialize the plugin rules: { name: { required: true, }, email:{ required: true, email:true }, phone:{ required: true, number:true, }, }, messages :{ email : "Please enter your email id", //product_quantity : "Please enter product quantity", phone : "Please enter your Mobile Number", }, submitHandler: function (form) { if ($(form).valid()) form.submit(); return false; } }); }); </script> <?php include 'inc/footer.php';?> </body> </html>