Server IP : 103.53.40.154 / Your IP : 3.145.78.117 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/ppcadsexpert.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<style> .btn-enquiry-right { background-color: #ffda00 !important; padding: 10px; position: fixed; right: 0px; border-radius: 0px; color: #000; font-size: 16px; z-index: 9999; top: 235px; text-transform: capitalize; box-shadow: 2px 2px 5px #888888; } </style> <a href="#index-form-section" class="btn btn-enquiry-right" title="Enquiry"> <i class="fa fa-envelope"></i> </a> <?php if(isset($_POST['EnqSubmitContact'])) { @extract($_REQUEST); $sql="insert into tbl_enquiry set enquiry_name='$contact_name', enquiry_email='$contact_email', enquiry_website_url='$contact_url', enquiry_source='Home Page', enquiry_add_date=now()"; db_query($sql); ///////////////****** Mailer to client start here **********************////////////// $hostName = $_SERVER['HTTP_HOST']; $msgmail="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' /> <title>TradeKeyIndia.com-Largest B2B Portal In India</title> </head> <body> <table align='center' cellSpacing='0' cellPadding='0' width='87%' border='1' style='border:1px solid #e61938'> <tbody> <tr> <td vAlign='top' style='background-color:#e61938; padding:10px;font-family:Verdana, Arial, Helvetica, sans-serif; font-size:16px; color:#ffffff; text-align:center; font-weight:bold;' colspan='3' >Enquiry From $hostName</td> </tr> <tr> <td width='30%' vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Name </strong> </td> <td vAlign='top' width='70%' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$contact_name</td> </tr> <tr> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Email-Id </strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$contact_email</td> </tr> <tr> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Website URL </strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$contact_url</td> </tr> </tbody> </table> </body> </html>"; $toEmail = $compDATA['admin_email']; //$toEmail="rehantki@gmail.com"; $subject = "Enquiry from $hostName"; $from="$contact_email"; $Headers1 = "From: $contact_name<$from>\n"; $Headers1 .= "X-Mailer: PHP/". phpversion(); $Headers1 .= "X-Priority: 3 \n"; $Headers1 .= "MIME-version: 1.0\n"; $Headers1 .= "Content-Type: text/html; charset=iso-8859-1\n"; @mail("$toEmail", "$subject", "$msgmail","$Headers1","-fenquiry@tradekeyindia.com"); //@mail("amitabh.tradekeyindia@gmail.com", "Subject", "Msg1","$Headers1","-fenquiry@tradekeyindia.com"); $toEmail."<br>"; ///////////////****** Mailer to User **********************////////////// $toEmail2 = $contact_email; $subject2 = "Enquiry of $hostName"; $from2="$compDATA[admin_email]"; $Headers12 = "From: $compDATA[admin_company_name]<$from2>\n"; $Headers12 .= "X-Mailer: PHP/". phpversion(); $Headers12 .= "X-Priority: 3 \n"; $Headers12 .= "MIME-version: 1.0\n"; $Headers12 .= "Content-Type: text/html; charset=iso-8859-1\n"; @mail("$toEmail2", "$subject2", "$msgmail","$Headers12","-fenquiry@tradekeyindia.com"); //@mail("amitabh.tradekeyindia@gmail.com", "Subject", "Msg1","$Headers1","-fenquiry@tradekeyindia.com"); $toEmail2."<br>"; ///////////////****** Mailer to client end here **********************////////////// ///////////////// Mail To Admin ////////////////////////////////// $mail_to_admin="client_enquiry@tradekeyindia.com"; //$mail_to_admin="arif.tradekeyindia@gmail.com"; $sub_admin="Business Enquiry From $hostName"; $mail_admin_body = "$msgmail"; $sender_admin =$contact_email; $headers_admin = "MIME-Version: 1.0" . "\r\n"; $headers_admin .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; $headers_admin .= "from: ".$sender_admin."\n"; if($contact_email){ @mail($mail_to_admin,$sub_admin,$mail_admin_body,$headers_admin); ?> <script>alert("Form submitted successfully. We will contact you soon."); window.location.href="<?=$full_url?>"; /* swal({title: "Successful", text: "Enquiry form submitted successfully, We will contact you soon", showConfirmButton: true, allowEscapeKey : false, allowOutsideClick: false, type: "success"}, function(){ window.location.href="<?=$full_url?>"; } );*/ </script> <? } } ?> <style> #error_style_contact{ color:white; font-size:13px; font-family:arial; background-color:#c32323; border-radius:7px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); box-sizing: border-box; padding:7px; margin-top: 4px; } .error_name_contact{ display:none; } .error_email_contact{ display:none; } .error_url_contact{ display:none; } </style> <section id="index-form-section"> <div class="w-100 bg-color16 py-86 position-relative seo-form-wrap text-white" style="background-image: url(assets/images/map-bg.png);background-position: center;background-size: cover;background-repeat: no-repeat;"> <div class="container"> <div class="seo-form-inner form-wrap style2 w-100"> <h3 class="mb-0 text-center">Get More Sales, Leads & Call at Great ROI</h3> <form class="w-100" action="" method="post" enctype="multipart/form-data" onsubmit="return checkValidationContact();"> <div class="row"> <div class="col-md-3 col-sm-6 col-lg-3"> <div class="input-field w-100 position-relative"> <input type="text" placeholder="Your Name *" name="contact_name" id="contact_name" onkeyup="errNameContact();"> <span class="field-counter text-color16">01</span> <p id="error_style_contact" class="error_name_contact" style="width:255px;"></p> </div> </div> <div class="col-md-3 col-sm-6 col-lg-3"> <div class="input-field w-100 position-relative"> <input type="text" placeholder="Your Email *" name="contact_email" id="contact_email" onkeyup="errEmailContact();"> <span class="field-counter text-color16">02</span> <p id="error_style_contact" class="error_email_contact" style="width:250px;"></p> </div> </div> <div class="col-md-3 col-sm-6 col-lg-3"> <div class="input-field w-100 position-relative"> <input type="text" placeholder="Your Website *" name="contact_url" id="contact_url" onkeyup="errUrlContact();"> <span class="field-counter text-color16">03</span> <p id="error_style_contact" class="error_url_contact" style="width:250px;"></p> </div> </div> <div class="col-md-3 col-sm-6 col-lg-3"> <div class="form-button w-100 position-relative"> <button class="theme-btn with-icon fill-btn2" type="submit" name="EnqSubmitContact">Check Now</button> </div> </div> </div> </form> </div> </div> </div><!-- Seo Form Wrap --> </section> <script> function trimfield(str) { return str.replace(/^\s+|\s+$/g,''); } function checkValidationContact(){ var name=document.getElementById("contact_name"); var email=document.getElementById("contact_email"); var url=document.getElementById("contact_url"); if(name.value==""){ $('#contact_name').css({"border-color":"red"}); name.focus(); $('.error_name_contact').fadeIn('slow'); $(".error_name_contact").html("Please enter your name!"); return false; } if(name.value.length<=3){ $('#contact_name').css({"border-color":"red"}); name.focus(); $(".error_name_contact").html("Name should be greater than 3 alphabets!"); $('.error_name_contact').fadeIn('slow'); return false; } if (/[0-9]/g.test(name.value)) { $('#contact_name').css({"border-color":"red"}); name.focus(); $(".error_name_contact").html("Use alphabet only!"); $('.error_name_contact').fadeIn('slow'); return false; } if(email.value==""){ $('#contact_email').css({"border-color":"red"}); email.focus(); $(".error_email_contact").html("Please enter your email!"); $('.error_email_contact').fadeIn('slow'); return false; } if(!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email.value)){ $('#contact_email').css({"border-color":"red"}); email.focus(); $(".error_email_contact").html("Please enter a valid email address!"); $('.error_email_contact').fadeIn('slow'); return false; } if(url.value==""){ $('#contact_url').css({"border-color":"red"}); url.focus(); $(".error_url_contact").html("Please enter a website url!"); $('.error_url_contact').fadeIn('slow'); return false; } } function errNameContact(){ $('#contact_name').css({"border-color":"#49aecc"}); $('.error_name_contact').css({"display":"none"}); } function errEmailContact(){ $('#contact_email').css({"border-color":"#49aecc"}); $('.error_email_contact').css({"display":"none"}); } function errUrlContact(){ $('#contact_url').css({"border-color":"#49aecc"}); $('.error_url_contact').css({"display":"none"}); } </script>