0){ while($obj=mysql_fetch_object($res)) { $strCatID=$obj->category_id; $strDescription=$obj->description; $strImage=$obj->image; } } if($_REQUEST['seopname'] == "") { $SQLd="select * from tbl_subcategory order by category_id"; } else { $SQLd="select * from tbl_subcategory where seoenquiry = '".$_REQUEST['seopname']."' order by category_id"; } $resd=mysql_query($SQLd); echo mysql_error(); $numrowsd=mysql_num_rows($resd); if($numrowsd>0){ if( ($_REQUEST['Mode'] == "SUBMIT")) { $sql = "insert into " .tbl_enquiry. "(product_name,name,company_name,email_address,address,telephone,fax,country,comments,enquiry_date)values ('".trim($_REQUEST["txtmname"]) ."','".trim($_REQUEST["txtname"]) ."','".trim($_REQUEST["compname"]) ."','".trim($_REQUEST["txtemail"]) ."','".trim($_REQUEST["txtaddress"]) ."','".trim($_REQUEST["txtphone"]) ."','".trim($_REQUEST["txtfax"]) ."','".trim($_REQUEST["country"]) ."','".trim($_REQUEST["txtcomments"]) ."',now())"; mysql_query($sql); mysql_error(); $mailmsg =""; $mailmsg .= ""; $mailmsg .= "\n"; $mailmsg .= "\n\n\n"; if($_REQUEST['txtmname']!= "") $mailmsg .= "\n\n\n"; if($_REQUEST['txtname']!= "") $mailmsg .= "\n\n\n"; if($_REQUEST['compname'] != "") $mailmsg .= "\n\n\n\n"; if($_REQUEST['txtemail'] != "") $mailmsg .= "\n\n\n"; if($_REQUEST['txtaddress'] != "") $mailmsg .= "\n\n\n"; if($_REQUEST['txtphone'] != "") $mailmsg .= "\n\n\n"; if($_REQUEST['txtfax'] != "") $mailmsg .= "\n\n\n"; if($_REQUEST['country'] != "") $mailmsg .= "\n\n\n"; if($_REQUEST['txtcomments'] != "") $mailmsg .= "\n\n\n"; $strTo = "info@fineweavetextile.com"; $strFrom=$_REQUEST['txtemail']; $strSubject="Enquiry details from ".$_REQUEST['txtname']; $strContent=$mailmsg; //echo $strContent; die(); send_mail($strTo,$strFrom,$strSubject,$strContent); $_SESSION['Msg'] = "Your Enquiry is Submitted Sucessfully.Our Executive will contact You Shortly"; header("location:thanks.php"); ?> 0){ while($objh=mysql_fetch_object($resh)) { $home=$objh->home; $aboutus=$objh->aboutus; $news=$objh->news; $enquiry=$objh->enquiry; $contact=$objh->contactus; $sitemap=$objh->sitemap; } } $seo="select * from tbl_category where category_id='1'"; $seorec=mysql_query($seo); $seono=mysql_num_rows($seorec); if($seono>0){ while($seoobj=mysql_fetch_object($seorec)) { $linkcatid=$seoobj->category_id; $linkseo=$seoobj->seocategory; } } $SQLt="select * from tbl_meta_tags where auto_id='1' "; $rest=mysql_query($SQLt); $numrowst=mysql_num_rows($rest); if($numrowst>0){ while($objt=mysql_fetch_object($rest)) { $enquiry_title_tag=$objt->enquiry_title_tag; $enquiry_meta_tag=$objt->enquiry_meta_tag; $enquiry_meta_description=$objt->enquiry_meta_description; } } ?>
Enquiry Form Submission
Product Name".stripslashes($_REQUEST['txtmname'])."
Name".stripslashes($_REQUEST['txtname'])."
Company Name".stripslashes($_REQUEST['compname'])."
Email Id".stripslashes($_REQUEST['txtemail'])."
Address".stripslashes($_REQUEST['txtaddress'])."
Telephone".stripslashes($_REQUEST['txtphone'])."
Fax".stripslashes($_REQUEST['txtfax'])."
Country".stripslashes($_REQUEST['country'])."
Comments".stripslashes($_REQUEST['txtcomments'])."