include("include/mysqlDB.php"); include("include/CommonFunction.php"); include("include/DefineKeys.php"); $cmdsend=$_REQUEST['cmdsend']; $enq_name=$_REQUEST['enq_name']; $enq_email=$_REQUEST['enq_email']; $enq_cont_no=$_REQUEST['enq_cont_no']; $enq_add1=$_REQUEST['enq_add1']; $enq_add2=$_REQUEST['enq_add2']; $enq_add3=$_REQUEST['enq_add3']; $enq_comment=$_REQUEST['enq_comment']; $middle= implode('',file('html/trade_enquiry.html')); $template = implode('',file('html/internal_template.html')); $template = str_replace('[MIDDLE]',$middle,$template); $template = str_replace('[LEFT]',$leftlist,$template); if($cmdsend=="Send") { $objDB = new DB; $Iqueery="INSERT INTO renmal_tradeenquiry(`enq_name`, `enq_email`, `enq_cont_no`, `enq_add`,`enq_comment`) VALUES ('$enq_name', '$enq_email', '$enq_cont_no', '$enq_add1', '$enq_add2', '$enq_add3', '$enq_comment')"; $res=$objDB->query($Iqueery); $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $enq_email\r\n"; $message="
Trade Enquiry | |
Name | $enq_name |
Email address | $enq_email |
Contact Number | $enq_cont_no |
Address | $enq_add |
Comments | $enq_comment |