Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!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=utf-8" />
- <title>Product(s) Enquiry | Jayna Industry - Enquire about three wheeler spares, three wheeler parts, Piston pins</title>
- <link rel="stylesheet" type="text/css" href="style.css" />
- </head>
- <body>
- <div id="topbar">
- <a href="index.html"><img src="img/logo.png" width="175" height="30"/></a><a href="index.html"><img src="img/home.png" height="30"/></a><a href="about.html"><img src="img/about.png" height="30"/></a><a href="product.php"><img src="img/products.png" height="30"/></a><a href="#"><img src="img/gold.png" height="30"/></a><a href="piston.html"><img src="img/piston.png" height="30"/></a><a href="#"><img src="img/quality.png" height="30"/></a><a href="contact.php"><img src="img/contact.png" height="30"/></a><a href="#"><img src="img/search.png" width="175" height="30"/></a>
- </div>
- <div id="content">
- <?php
- $topic = null;
- $pageID = null;
- if (isset($_POST['contact_name']) && isset($_POST['contact_email']) && isset($_POST['contact_text']) && isset($_POST['contact_product']) && isset($_POST['contact_number']) && isset($_POST['contact_address']))
- {
- $contact_name = $_POST['contact_name'];
- $contact_email = $_POST['contact_email'];
- $contact_product = $_POST['contact_product'];
- $contact_text = $_POST['contact_text'];
- $contact_number = $_POST['contact_number'];
- $contact_address = $_POST['contact_address'];
- if(!empty($contact_name) && !empty($contact_email) && !empty($contact_text) && !empty($contact_number) && !empty($contact_address) && !empty($contact_product)){
- $subject = 'Contact Form Fillup Mail';
- $body = $contact_name."\n".$contact_number."\n".$contact_address."\n".$contact_product."\n".$contact_text;
- $headers = 'From: '.$contact_email;
- if(@mail($to,$subject,$body,$headers)){
- echo 'Thanks for contacting us, We will be in touch.';
- }
- else{
- $topic = $_POST['contact_product'];
- echo 'Sorry, an error occurred';
- }
- }
- else{
- $topic = $_POST['contact_product'];
- echo 'All fields are required.';
- }
- }
- if(isset($_POST['submit-enquiry1'])) {
- if (isset($_POST['product-1'])) {
- $topic = $topic . "1st Gear";
- }
- if (isset($_POST['product-2'])) {
- if ($topic == null) {
- $topic = "product-2";
- }
- else {
- $topic = $topic . " ; product-2";
- }
- }
- if (isset($_POST['product-3'])) {
- if ($topic == null) {
- $topic = "product-3";
- }
- else {
- $topic = $topic . " ; product-3";
- }
- }
- if (isset($_POST['product-4'])) {
- if ($topic == null) {
- $topic = "product-4";
- }
- else {
- $topic = $topic . " ; product-4";
- }
- }
- if (isset($_POST['product-5'])) {
- if ($topic == null) {
- $topic = "product-5";
- }
- else {
- $topic = $topic . " ; product-5";
- }
- }
- if (isset($_POST['product-6'])) {
- if ($topic == null) {
- $topic = "product-6";
- }
- else {
- $topic = $topic . " ; product-6";
- }
- }
- if (isset($_POST['product-7'])) {
- if ($topic == null) {
- $topic = "product-7";
- }
- else {
- $topic = $topic . " ; product-7";
- }
- }
- if (isset($_POST['product-8'])) {
- if ($topic == null) {
- $topic = "product-8";
- }
- else {
- $topic = $topic . " ; product-8";
- }
- }
- if (isset($_POST['product-9'])) {
- if ($topic == null) {
- $topic = "product-9";
- }
- else {
- $topic = $topic . " ; product-9";
- }
- }
- if (isset($_POST['product-10'])) {
- if ($topic == null) {
- $topic = "product-10";
- }
- else {
- $topic = $topic . " ; product-10";
- }
- }
- if (isset($_POST['product-11'])) {
- if ($topic == null) {
- $topic = "product-11";
- }
- else {
- $topic = $topic . " ; product-11";
- }
- }
- if (isset($_POST['product-12'])) {
- if ($topic == null) {
- $topic = "product-12";
- }
- else {
- $topic = $topic . " ; product-12";
- }
- }
- if (isset($_POST['product-13'])) {
- if ($topic == null) {
- $topic = "product-13";
- }
- else {
- $topic = $topic . " ; product-13";
- }
- }
- if (isset($_POST['product-14'])) {
- if ($topic == null) {
- $topic = "product-14";
- }
- else {
- $topic = $topic . " ; product-14";
- }
- }
- if (isset($_POST['product-15'])) {
- if ($topic == null) {
- $topic = "product-15";
- }
- else {
- $topic = $topic . " ; product-15";
- }
- }
- if (isset($_POST['product-16'])) {
- if ($topic == null) {
- $topic = "product-16";
- }
- else {
- $topic = $topic . " ; product-16";
- }
- }
- if (isset($_POST['product-17'])) {
- if ($topic == null) {
- $topic = "product-17";
- }
- else {
- $topic = $topic . " ; product-17";
- }
- }
- if (isset($_POST['product-18'])) {
- if ($topic == null) {
- $topic = "product-18";
- }
- else {
- $topic = $topic . " ; product-18";
- }
- }
- if (isset($_POST['product-19'])) {
- if ($topic == null) {
- $topic = "product-19";
- }
- else {
- $topic = $topic . " ; product-19";
- }
- }
- if (isset($_POST['product-20'])) {
- if ($topic == null) {
- $topic = "product-20";
- }
- else {
- $topic = $topic . " ; product-20";
- }
- }
- if (isset($_POST['product-21'])) {
- if ($topic == null) {
- $topic = "product-21";
- }
- else {
- $topic = $topic . " ; product-21";
- }
- }
- if (isset($_POST['product-22'])) {
- if ($topic == null) {
- $topic = "product-22";
- }
- else {
- $topic = $topic . " ; product-22";
- }
- }
- if (isset($_POST['product-23'])) {
- if ($topic == null) {
- $topic = "product-23";
- }
- else {
- $topic = $topic . " ; product-23";
- }
- }
- if (isset($_POST['product-24'])) {
- if ($topic == null) {
- $topic = "product-24";
- }
- else {
- $topic = $topic . " ; product-24";
- }
- }
- if (isset($_POST['product-25'])) {
- if ($topic == null) {
- $topic = "product-25";
- }
- else {
- $topic = $topic . " ; product-25";
- }
- }
- if (isset($_POST['product-26'])) {
- if ($topic == null) {
- $topic = "product-26";
- }
- else {
- $topic = $topic . " ; product-26";
- }
- }
- if (isset($_POST['product-27'])) {
- if ($topic == null) {
- $topic = "product-27";
- }
- else {
- $topic = $topic . " ; product-27";
- }
- }
- if (isset($_POST['product-28'])) {
- if ($topic == null) {
- $topic = "product-28";
- }
- else {
- $topic = $topic . " ; product-28";
- }
- }
- if (isset($_POST['product-29'])) {
- if ($topic == null) {
- $topic = "product-29";
- }
- else {
- $topic = $topic . " ; product-29";
- }
- }
- if (isset($_POST['product-30'])) {
- if ($topic == null) {
- $topic = "product-30";
- }
- else {
- $topic = $topic . " ; product-30";
- }
- }
- if (isset($_POST['product-31'])) {
- if ($topic == null) {
- $topic = "product-31";
- }
- else {
- $topic = $topic . " ; product-31";
- }
- }
- if (isset($_POST['product-32'])) {
- if ($topic == null) {
- $topic = "product-32";
- }
- else {
- $topic = $topic . " ; product-32";
- }
- }
- if (isset($_POST['product-33'])) {
- if ($topic == null) {
- $topic = "product-33";
- }
- else {
- $topic = $topic . " ; product-33";
- }
- }
- if (isset($_POST['product-34'])) {
- if ($topic == null) {
- $topic = "product-34";
- }
- else {
- $topic = $topic . " ; product-34";
- }
- }
- if (isset($_POST['product-35'])) {
- if ($topic == null) {
- $topic = "product-35";
- }
- else {
- $topic = $topic . " ; product-35";
- }
- }
- if (isset($_POST['product-36'])) {
- if ($topic == null) {
- $topic = "product-36";
- }
- else {
- $topic = $topic . " ; product-36";
- }
- }
- if (isset($_POST['product-37'])) {
- if ($topic == null) {
- $topic = "product-37";
- }
- else {
- $topic = $topic . " ; product-37";
- }
- }
- if (isset($_POST['product-38'])) {
- if ($topic == null) {
- $topic = "product-38";
- }
- else {
- $topic = $topic . " ; product-38";
- }
- }
- if (isset($_POST['product-39'])) {
- if ($topic == null) {
- $topic = "product-39";
- }
- else {
- $topic = $topic . " ; product-39";
- }
- }
- if (isset($_POST['product-40'])) {
- if ($topic == null) {
- $topic = "product-40";
- }
- else {
- $topic = $topic . " ; product-40";
- }
- }
- }
- //Product Category 2
- if(isset($_POST['submit-enquiry2'])) {
- if (isset($_POST['product-1'])) {
- $topic = $topic . $_POST['product-1'];
- }
- if (isset($_POST['product-2'])) {
- if ($topic == null) {
- $topic = "product-2";
- }
- else {
- $topic = $topic . " ; product-2";
- }
- }
- if (isset($_POST['product-3'])) {
- if ($topic == null) {
- $topic = "product-3";
- }
- else {
- $topic = $topic . " ; product-3";
- }
- }
- if (isset($_POST['product-4'])) {
- if ($topic == null) {
- $topic = "product-4";
- }
- else {
- $topic = $topic . " ; product-4";
- }
- }
- if (isset($_POST['product-5'])) {
- if ($topic == null) {
- $topic = "product-5";
- }
- else {
- $topic = $topic . " ; product-5";
- }
- }
- if (isset($_POST['product-6'])) {
- if ($topic == null) {
- $topic = "product-6";
- }
- else {
- $topic = $topic . " ; product-6";
- }
- }
- if (isset($_POST['product-7'])) {
- if ($topic == null) {
- $topic = "product-7";
- }
- else {
- $topic = $topic . " ; product-7";
- }
- }
- if (isset($_POST['product-8'])) {
- if ($topic == null) {
- $topic = "product-8";
- }
- else {
- $topic = $topic . " ; product-8";
- }
- }
- if (isset($_POST['product-9'])) {
- if ($topic == null) {
- $topic = "product-9";
- }
- else {
- $topic = $topic . " ; product-9";
- }
- }
- if (isset($_POST['product-10'])) {
- if ($topic == null) {
- $topic = "product-10";
- }
- else {
- $topic = $topic . " ; product-10";
- }
- }
- if (isset($_POST['product-11'])) {
- if ($topic == null) {
- $topic = "product-11";
- }
- else {
- $topic = $topic . " ; product-11";
- }
- }
- if (isset($_POST['product-12'])) {
- if ($topic == null) {
- $topic = "product-12";
- }
- else {
- $topic = $topic . " ; product-12";
- }
- }
- if (isset($_POST['product-13'])) {
- if ($topic == null) {
- $topic = "product-13";
- }
- else {
- $topic = $topic . " ; product-13";
- }
- }
- if (isset($_POST['product-14'])) {
- if ($topic == null) {
- $topic = "product-14";
- }
- else {
- $topic = $topic . " ; product-14";
- }
- }
- if (isset($_POST['product-15'])) {
- if ($topic == null) {
- $topic = "product-15";
- }
- else {
- $topic = $topic . " ; product-15";
- }
- }
- if (isset($_POST['product-16'])) {
- if ($topic == null) {
- $topic = "product-16";
- }
- else {
- $topic = $topic . " ; product-16";
- }
- }
- if (isset($_POST['product-17'])) {
- if ($topic == null) {
- $topic = "product-17";
- }
- else {
- $topic = $topic . " ; product-17";
- }
- }
- if (isset($_POST['product-18'])) {
- if ($topic == null) {
- $topic = "product-18";
- }
- else {
- $topic = $topic . " ; product-18";
- }
- }
- if (isset($_POST['product-19'])) {
- if ($topic == null) {
- $topic = "product-19";
- }
- else {
- $topic = $topic . " ; product-19";
- }
- }
- if (isset($_POST['product-20'])) {
- if ($topic == null) {
- $topic = "product-20";
- }
- else {
- $topic = $topic . " ; product-20";
- }
- }
- if (isset($_POST['product-21'])) {
- if ($topic == null) {
- $topic = "product-21";
- }
- else {
- $topic = $topic . " ; product-21";
- }
- }
- if (isset($_POST['product-22'])) {
- if ($topic == null) {
- $topic = "product-22";
- }
- else {
- $topic = $topic . " ; product-22";
- }
- }
- if (isset($_POST['product-23'])) {
- if ($topic == null) {
- $topic = "product-23";
- }
- else {
- $topic = $topic . " ; product-23";
- }
- }
- if (isset($_POST['product-24'])) {
- if ($topic == null) {
- $topic = "product-24";
- }
- else {
- $topic = $topic . " ; product-24";
- }
- }
- if (isset($_POST['product-25'])) {
- if ($topic == null) {
- $topic = "product-25";
- }
- else {
- $topic = $topic . " ; product-25";
- }
- }
- if (isset($_POST['product-26'])) {
- if ($topic == null) {
- $topic = "product-26";
- }
- else {
- $topic = $topic . " ; product-26";
- }
- }
- if (isset($_POST['product-27'])) {
- if ($topic == null) {
- $topic = "product-27";
- }
- else {
- $topic = $topic . " ; product-27";
- }
- }
- if (isset($_POST['product-28'])) {
- if ($topic == null) {
- $topic = "product-28";
- }
- else {
- $topic = $topic . " ; product-28";
- }
- }
- if (isset($_POST['product-29'])) {
- if ($topic == null) {
- $topic = "product-29";
- }
- else {
- $topic = $topic . " ; product-29";
- }
- }
- if (isset($_POST['product-30'])) {
- if ($topic == null) {
- $topic = "product-30";
- }
- else {
- $topic = $topic . " ; product-30";
- }
- }
- if (isset($_POST['product-31'])) {
- if ($topic == null) {
- $topic = "product-31";
- }
- else {
- $topic = $topic . " ; product-31";
- }
- }
- if (isset($_POST['product-32'])) {
- if ($topic == null) {
- $topic = "product-32";
- }
- else {
- $topic = $topic . " ; product-32";
- }
- }
- if (isset($_POST['product-33'])) {
- if ($topic == null) {
- $topic = "product-33";
- }
- else {
- $topic = $topic . " ; product-33";
- }
- }
- if (isset($_POST['product-34'])) {
- if ($topic == null) {
- $topic = "product-34";
- }
- else {
- $topic = $topic . " ; product-34";
- }
- }
- if (isset($_POST['product-35'])) {
- if ($topic == null) {
- $topic = "product-35";
- }
- else {
- $topic = $topic . " ; product-35";
- }
- }
- if (isset($_POST['product-36'])) {
- if ($topic == null) {
- $topic = "product-36";
- }
- else {
- $topic = $topic . " ; product-36";
- }
- }
- if (isset($_POST['product-37'])) {
- if ($topic == null) {
- $topic = "product-37";
- }
- else {
- $topic = $topic . " ; product-37";
- }
- }
- if (isset($_POST['product-38'])) {
- if ($topic == null) {
- $topic = "product-38";
- }
- else {
- $topic = $topic . " ; product-38";
- }
- }
- if (isset($_POST['product-39'])) {
- if ($topic == null) {
- $topic = "product-39";
- }
- else {
- $topic = $topic . " ; product-39";
- }
- }
- if (isset($_POST['product-40'])) {
- if ($topic == null) {
- $topic = "product-40";
- }
- else {
- $topic = $topic . " ; product-40";
- }
- }
- }
- //Product Category 3
- if(isset($_POST['submit-enquiry3'])) {
- if (isset($_POST['product-1'])) {
- $topic = $topic . $_POST['product-1'];
- }
- if (isset($_POST['product-2'])) {
- if ($topic == null) {
- $topic = "product-2";
- }
- else {
- $topic = $topic . " ; product-2";
- }
- }
- if (isset($_POST['product-3'])) {
- if ($topic == null) {
- $topic = "product-3";
- }
- else {
- $topic = $topic . " ; product-3";
- }
- }
- if (isset($_POST['product-4'])) {
- if ($topic == null) {
- $topic = "product-4";
- }
- else {
- $topic = $topic . " ; product-4";
- }
- }
- if (isset($_POST['product-5'])) {
- if ($topic == null) {
- $topic = "product-5";
- }
- else {
- $topic = $topic . " ; product-5";
- }
- }
- if (isset($_POST['product-6'])) {
- if ($topic == null) {
- $topic = "product-6";
- }
- else {
- $topic = $topic . " ; product-6";
- }
- }
- if (isset($_POST['product-7'])) {
- if ($topic == null) {
- $topic = "product-7";
- }
- else {
- $topic = $topic . " ; product-7";
- }
- }
- if (isset($_POST['product-8'])) {
- if ($topic == null) {
- $topic = "product-8";
- }
- else {
- $topic = $topic . " ; product-8";
- }
- }
- if (isset($_POST['product-9'])) {
- if ($topic == null) {
- $topic = "product-9";
- }
- else {
- $topic = $topic . " ; product-9";
- }
- }
- if (isset($_POST['product-10'])) {
- if ($topic == null) {
- $topic = "product-10";
- }
- else {
- $topic = $topic . " ; product-10";
- }
- }
- if (isset($_POST['product-11'])) {
- if ($topic == null) {
- $topic = "product-11";
- }
- else {
- $topic = $topic . " ; product-11";
- }
- }
- if (isset($_POST['product-12'])) {
- if ($topic == null) {
- $topic = "product-12";
- }
- else {
- $topic = $topic . " ; product-12";
- }
- }
- if (isset($_POST['product-13'])) {
- if ($topic == null) {
- $topic = "product-13";
- }
- else {
- $topic = $topic . " ; product-13";
- }
- }
- if (isset($_POST['product-14'])) {
- if ($topic == null) {
- $topic = "product-14";
- }
- else {
- $topic = $topic . " ; product-14";
- }
- }
- if (isset($_POST['product-15'])) {
- if ($topic == null) {
- $topic = "product-15";
- }
- else {
- $topic = $topic . " ; product-15";
- }
- }
- if (isset($_POST['product-16'])) {
- if ($topic == null) {
- $topic = "product-16";
- }
- else {
- $topic = $topic . " ; product-16";
- }
- }
- if (isset($_POST['product-17'])) {
- if ($topic == null) {
- $topic = "product-17";
- }
- else {
- $topic = $topic . " ; product-17";
- }
- }
- if (isset($_POST['product-18'])) {
- if ($topic == null) {
- $topic = "product-18";
- }
- else {
- $topic = $topic . " ; product-18";
- }
- }
- if (isset($_POST['product-19'])) {
- if ($topic == null) {
- $topic = "product-19";
- }
- else {
- $topic = $topic . " ; product-19";
- }
- }
- if (isset($_POST['product-20'])) {
- if ($topic == null) {
- $topic = "product-20";
- }
- else {
- $topic = $topic . " ; product-20";
- }
- }
- if (isset($_POST['product-21'])) {
- if ($topic == null) {
- $topic = "product-21";
- }
- else {
- $topic = $topic . " ; product-21";
- }
- }
- if (isset($_POST['product-22'])) {
- if ($topic == null) {
- $topic = "product-22";
- }
- else {
- $topic = $topic . " ; product-22";
- }
- }
- if (isset($_POST['product-23'])) {
- if ($topic == null) {
- $topic = "product-23";
- }
- else {
- $topic = $topic . " ; product-23";
- }
- }
- if (isset($_POST['product-24'])) {
- if ($topic == null) {
- $topic = "product-24";
- }
- else {
- $topic = $topic . " ; product-24";
- }
- }
- if (isset($_POST['product-25'])) {
- if ($topic == null) {
- $topic = "product-25";
- }
- else {
- $topic = $topic . " ; product-25";
- }
- }
- if (isset($_POST['product-26'])) {
- if ($topic == null) {
- $topic = "product-26";
- }
- else {
- $topic = $topic . " ; product-26";
- }
- }
- if (isset($_POST['product-27'])) {
- if ($topic == null) {
- $topic = "product-27";
- }
- else {
- $topic = $topic . " ; product-27";
- }
- }
- if (isset($_POST['product-28'])) {
- if ($topic == null) {
- $topic = "product-28";
- }
- else {
- $topic = $topic . " ; product-28";
- }
- }
- if (isset($_POST['product-29'])) {
- if ($topic == null) {
- $topic = "product-29";
- }
- else {
- $topic = $topic . " ; product-29";
- }
- }
- if (isset($_POST['product-30'])) {
- if ($topic == null) {
- $topic = "product-30";
- }
- else {
- $topic = $topic . " ; product-30";
- }
- }
- if (isset($_POST['product-31'])) {
- if ($topic == null) {
- $topic = "product-31";
- }
- else {
- $topic = $topic . " ; product-31";
- }
- }
- if (isset($_POST['product-32'])) {
- if ($topic == null) {
- $topic = "product-32";
- }
- else {
- $topic = $topic . " ; product-32";
- }
- }
- if (isset($_POST['product-33'])) {
- if ($topic == null) {
- $topic = "product-33";
- }
- else {
- $topic = $topic . " ; product-33";
- }
- }
- if (isset($_POST['product-34'])) {
- if ($topic == null) {
- $topic = "product-34";
- }
- else {
- $topic = $topic . " ; product-34";
- }
- }
- if (isset($_POST['product-35'])) {
- if ($topic == null) {
- $topic = "product-35";
- }
- else {
- $topic = $topic . " ; product-35";
- }
- }
- if (isset($_POST['product-36'])) {
- if ($topic == null) {
- $topic = "product-36";
- }
- else {
- $topic = $topic . " ; product-36";
- }
- }
- if (isset($_POST['product-37'])) {
- if ($topic == null) {
- $topic = "product-37";
- }
- else {
- $topic = $topic . " ; product-37";
- }
- }
- if (isset($_POST['product-38'])) {
- if ($topic == null) {
- $topic = "product-38";
- }
- else {
- $topic = $topic . " ; product-38";
- }
- }
- if (isset($_POST['product-39'])) {
- if ($topic == null) {
- $topic = "product-39";
- }
- else {
- $topic = $topic . " ; product-39";
- }
- }
- if (isset($_POST['product-40'])) {
- if ($topic == null) {
- $topic = "product-40";
- }
- else {
- $topic = $topic . " ; product-40";
- }
- }
- }
- //Product category 4
- if(isset($_POST['submit-enquiry4'])) {
- if (isset($_POST['product-1'])) {
- $topic = $topic . $_POST['product-1'];
- }
- if (isset($_POST['product-2'])) {
- if ($topic == null) {
- $topic = "product-2";
- }
- else {
- $topic = $topic . " ; product-2";
- }
- }
- if (isset($_POST['product-3'])) {
- if ($topic == null) {
- $topic = "product-3";
- }
- else {
- $topic = $topic . " ; product-3";
- }
- }
- if (isset($_POST['product-4'])) {
- if ($topic == null) {
- $topic = "product-4";
- }
- else {
- $topic = $topic . " ; product-4";
- }
- }
- if (isset($_POST['product-5'])) {
- if ($topic == null) {
- $topic = "product-5";
- }
- else {
- $topic = $topic . " ; product-5";
- }
- }
- if (isset($_POST['product-6'])) {
- if ($topic == null) {
- $topic = "product-6";
- }
- else {
- $topic = $topic . " ; product-6";
- }
- }
- if (isset($_POST['product-7'])) {
- if ($topic == null) {
- $topic = "product-7";
- }
- else {
- $topic = $topic . " ; product-7";
- }
- }
- if (isset($_POST['product-8'])) {
- if ($topic == null) {
- $topic = "product-8";
- }
- else {
- $topic = $topic . " ; product-8";
- }
- }
- if (isset($_POST['product-9'])) {
- if ($topic == null) {
- $topic = "product-9";
- }
- else {
- $topic = $topic . " ; product-9";
- }
- }
- if (isset($_POST['product-10'])) {
- if ($topic == null) {
- $topic = "product-10";
- }
- else {
- $topic = $topic . " ; product-10";
- }
- }
- if (isset($_POST['product-11'])) {
- if ($topic == null) {
- $topic = "product-11";
- }
- else {
- $topic = $topic . " ; product-11";
- }
- }
- if (isset($_POST['product-12'])) {
- if ($topic == null) {
- $topic = "product-12";
- }
- else {
- $topic = $topic . " ; product-12";
- }
- }
- if (isset($_POST['product-13'])) {
- if ($topic == null) {
- $topic = "product-13";
- }
- else {
- $topic = $topic . " ; product-13";
- }
- }
- if (isset($_POST['product-14'])) {
- if ($topic == null) {
- $topic = "product-14";
- }
- else {
- $topic = $topic . " ; product-14";
- }
- }
- if (isset($_POST['product-15'])) {
- if ($topic == null) {
- $topic = "product-15";
- }
- else {
- $topic = $topic . " ; product-15";
- }
- }
- if (isset($_POST['product-16'])) {
- if ($topic == null) {
- $topic = "product-16";
- }
- else {
- $topic = $topic . " ; product-16";
- }
- }
- if (isset($_POST['product-17'])) {
- if ($topic == null) {
- $topic = "product-17";
- }
- else {
- $topic = $topic . " ; product-17";
- }
- }
- if (isset($_POST['product-18'])) {
- if ($topic == null) {
- $topic = "product-18";
- }
- else {
- $topic = $topic . " ; product-18";
- }
- }
- if (isset($_POST['product-19'])) {
- if ($topic == null) {
- $topic = "product-19";
- }
- else {
- $topic = $topic . " ; product-19";
- }
- }
- if (isset($_POST['product-20'])) {
- if ($topic == null) {
- $topic = "product-20";
- }
- else {
- $topic = $topic . " ; product-20";
- }
- }
- if (isset($_POST['product-21'])) {
- if ($topic == null) {
- $topic = "product-21";
- }
- else {
- $topic = $topic . " ; product-21";
- }
- }
- if (isset($_POST['product-22'])) {
- if ($topic == null) {
- $topic = "product-22";
- }
- else {
- $topic = $topic . " ; product-22";
- }
- }
- if (isset($_POST['product-23'])) {
- if ($topic == null) {
- $topic = "product-23";
- }
- else {
- $topic = $topic . " ; product-23";
- }
- }
- if (isset($_POST['product-24'])) {
- if ($topic == null) {
- $topic = "product-24";
- }
- else {
- $topic = $topic . " ; product-24";
- }
- }
- if (isset($_POST['product-25'])) {
- if ($topic == null) {
- $topic = "product-25";
- }
- else {
- $topic = $topic . " ; product-25";
- }
- }
- if (isset($_POST['product-26'])) {
- if ($topic == null) {
- $topic = "product-26";
- }
- else {
- $topic = $topic . " ; product-26";
- }
- }
- if (isset($_POST['product-27'])) {
- if ($topic == null) {
- $topic = "product-27";
- }
- else {
- $topic = $topic . " ; product-27";
- }
- }
- if (isset($_POST['product-28'])) {
- if ($topic == null) {
- $topic = "product-28";
- }
- else {
- $topic = $topic . " ; product-28";
- }
- }
- if (isset($_POST['product-29'])) {
- if ($topic == null) {
- $topic = "product-29";
- }
- else {
- $topic = $topic . " ; product-29";
- }
- }
- if (isset($_POST['product-30'])) {
- if ($topic == null) {
- $topic = "product-30";
- }
- else {
- $topic = $topic . " ; product-30";
- }
- }
- if (isset($_POST['product-31'])) {
- if ($topic == null) {
- $topic = "product-31";
- }
- else {
- $topic = $topic . " ; product-31";
- }
- }
- if (isset($_POST['product-32'])) {
- if ($topic == null) {
- $topic = "product-32";
- }
- else {
- $topic = $topic . " ; product-32";
- }
- }
- if (isset($_POST['product-33'])) {
- if ($topic == null) {
- $topic = "product-33";
- }
- else {
- $topic = $topic . " ; product-33";
- }
- }
- if (isset($_POST['product-34'])) {
- if ($topic == null) {
- $topic = "product-34";
- }
- else {
- $topic = $topic . " ; product-34";
- }
- }
- if (isset($_POST['product-35'])) {
- if ($topic == null) {
- $topic = "product-35";
- }
- else {
- $topic = $topic . " ; product-35";
- }
- }
- if (isset($_POST['product-36'])) {
- if ($topic == null) {
- $topic = "product-36";
- }
- else {
- $topic = $topic . " ; product-36";
- }
- }
- if (isset($_POST['product-37'])) {
- if ($topic == null) {
- $topic = "product-37";
- }
- else {
- $topic = $topic . " ; product-37";
- }
- }
- if (isset($_POST['product-38'])) {
- if ($topic == null) {
- $topic = "product-38";
- }
- else {
- $topic = $topic . " ; product-38";
- }
- }
- if (isset($_POST['product-39'])) {
- if ($topic == null) {
- $topic = "product-39";
- }
- else {
- $topic = $topic . " ; product-39";
- }
- }
- if (isset($_POST['product-40'])) {
- if ($topic == null) {
- $topic = "product-40";
- }
- else {
- $topic = $topic . " ; product-40";
- }
- }
- }
- //Product Category 5
- if(isset($_POST['submit-enquiry5'])) {
- if (isset($_POST['product-1'])) {
- $topic = $topic . $_POST['product-1'];
- }
- if (isset($_POST['product-2'])) {
- if ($topic == null) {
- $topic = "product-2";
- }
- else {
- $topic = $topic . " ; product-2";
- }
- }
- if (isset($_POST['product-3'])) {
- if ($topic == null) {
- $topic = "product-3";
- }
- else {
- $topic = $topic . " ; product-3";
- }
- }
- if (isset($_POST['product-4'])) {
- if ($topic == null) {
- $topic = "product-4";
- }
- else {
- $topic = $topic . " ; product-4";
- }
- }
- if (isset($_POST['product-5'])) {
- if ($topic == null) {
- $topic = "product-5";
- }
- else {
- $topic = $topic . " ; product-5";
- }
- }
- if (isset($_POST['product-6'])) {
- if ($topic == null) {
- $topic = "product-6";
- }
- else {
- $topic = $topic . " ; product-6";
- }
- }
- if (isset($_POST['product-7'])) {
- if ($topic == null) {
- $topic = "product-7";
- }
- else {
- $topic = $topic . " ; product-7";
- }
- }
- if (isset($_POST['product-8'])) {
- if ($topic == null) {
- $topic = "product-8";
- }
- else {
- $topic = $topic . " ; product-8";
- }
- }
- if (isset($_POST['product-9'])) {
- if ($topic == null) {
- $topic = "product-9";
- }
- else {
- $topic = $topic . " ; product-9";
- }
- }
- if (isset($_POST['product-10'])) {
- if ($topic == null) {
- $topic = "product-10";
- }
- else {
- $topic = $topic . " ; product-10";
- }
- }
- if (isset($_POST['product-11'])) {
- if ($topic == null) {
- $topic = "product-11";
- }
- else {
- $topic = $topic . " ; product-11";
- }
- }
- if (isset($_POST['product-12'])) {
- if ($topic == null) {
- $topic = "product-12";
- }
- else {
- $topic = $topic . " ; product-12";
- }
- }
- if (isset($_POST['product-13'])) {
- if ($topic == null) {
- $topic = "product-13";
- }
- else {
- $topic = $topic . " ; product-13";
- }
- }
- if (isset($_POST['product-14'])) {
- if ($topic == null) {
- $topic = "product-14";
- }
- else {
- $topic = $topic . " ; product-14";
- }
- }
- if (isset($_POST['product-15'])) {
- if ($topic == null) {
- $topic = "product-15";
- }
- else {
- $topic = $topic . " ; product-15";
- }
- }
- if (isset($_POST['product-16'])) {
- if ($topic == null) {
- $topic = "product-16";
- }
- else {
- $topic = $topic . " ; product-16";
- }
- }
- if (isset($_POST['product-17'])) {
- if ($topic == null) {
- $topic = "product-17";
- }
- else {
- $topic = $topic . " ; product-17";
- }
- }
- if (isset($_POST['product-18'])) {
- if ($topic == null) {
- $topic = "product-18";
- }
- else {
- $topic = $topic . " ; product-18";
- }
- }
- if (isset($_POST['product-19'])) {
- if ($topic == null) {
- $topic = "product-19";
- }
- else {
- $topic = $topic . " ; product-19";
- }
- }
- if (isset($_POST['product-20'])) {
- if ($topic == null) {
- $topic = "product-20";
- }
- else {
- $topic = $topic . " ; product-20";
- }
- }
- if (isset($_POST['product-21'])) {
- if ($topic == null) {
- $topic = "product-21";
- }
- else {
- $topic = $topic . " ; product-21";
- }
- }
- if (isset($_POST['product-22'])) {
- if ($topic == null) {
- $topic = "product-22";
- }
- else {
- $topic = $topic . " ; product-22";
- }
- }
- if (isset($_POST['product-23'])) {
- if ($topic == null) {
- $topic = "product-23";
- }
- else {
- $topic = $topic . " ; product-23";
- }
- }
- if (isset($_POST['product-24'])) {
- if ($topic == null) {
- $topic = "product-24";
- }
- else {
- $topic = $topic . " ; product-24";
- }
- }
- if (isset($_POST['product-25'])) {
- if ($topic == null) {
- $topic = "product-25";
- }
- else {
- $topic = $topic . " ; product-25";
- }
- }
- if (isset($_POST['product-26'])) {
- if ($topic == null) {
- $topic = "product-26";
- }
- else {
- $topic = $topic . " ; product-26";
- }
- }
- if (isset($_POST['product-27'])) {
- if ($topic == null) {
- $topic = "product-27";
- }
- else {
- $topic = $topic . " ; product-27";
- }
- }
- if (isset($_POST['product-28'])) {
- if ($topic == null) {
- $topic = "product-28";
- }
- else {
- $topic = $topic . " ; product-28";
- }
- }
- if (isset($_POST['product-29'])) {
- if ($topic == null) {
- $topic = "product-29";
- }
- else {
- $topic = $topic . " ; product-29";
- }
- }
- if (isset($_POST['product-30'])) {
- if ($topic == null) {
- $topic = "product-30";
- }
- else {
- $topic = $topic . " ; product-30";
- }
- }
- if (isset($_POST['product-31'])) {
- if ($topic == null) {
- $topic = "product-31";
- }
- else {
- $topic = $topic . " ; product-31";
- }
- }
- if (isset($_POST['product-32'])) {
- if ($topic == null) {
- $topic = "product-32";
- }
- else {
- $topic = $topic . " ; product-32";
- }
- }
- if (isset($_POST['product-33'])) {
- if ($topic == null) {
- $topic = "product-33";
- }
- else {
- $topic = $topic . " ; product-33";
- }
- }
- if (isset($_POST['product-34'])) {
- if ($topic == null) {
- $topic = "product-34";
- }
- else {
- $topic = $topic . " ; product-34";
- }
- }
- if (isset($_POST['product-35'])) {
- if ($topic == null) {
- $topic = "product-35";
- }
- else {
- $topic = $topic . " ; product-35";
- }
- }
- if (isset($_POST['product-36'])) {
- if ($topic == null) {
- $topic = "product-36";
- }
- else {
- $topic = $topic . " ; product-36";
- }
- }
- if (isset($_POST['product-37'])) {
- if ($topic == null) {
- $topic = "product-37";
- }
- else {
- $topic = $topic . " ; product-37";
- }
- }
- if (isset($_POST['product-38'])) {
- if ($topic == null) {
- $topic = "product-38";
- }
- else {
- $topic = $topic . " ; product-38";
- }
- }
- if (isset($_POST['product-39'])) {
- if ($topic == null) {
- $topic = "product-39";
- }
- else {
- $topic = $topic . " ; product-39";
- }
- }
- if (isset($_POST['product-40'])) {
- if ($topic == null) {
- $topic = "product-40";
- }
- else {
- $topic = $topic . " ; product-40";
- }
- }
- }
- //Product Category 6
- if(isset($_POST['submit-enquiry6'])) {
- if (isset($_POST['product-1'])) {
- $topic = $topic . $_POST['product-1'];
- }
- if (isset($_POST['product-2'])) {
- if ($topic == null) {
- $topic = "product-2";
- }
- else {
- $topic = $topic . " ; product-2";
- }
- }
- if (isset($_POST['product-3'])) {
- if ($topic == null) {
- $topic = "product-3";
- }
- else {
- $topic = $topic . " ; product-3";
- }
- }
- if (isset($_POST['product-4'])) {
- if ($topic == null) {
- $topic = "product-4";
- }
- else {
- $topic = $topic . " ; product-4";
- }
- }
- if (isset($_POST['product-5'])) {
- if ($topic == null) {
- $topic = "product-5";
- }
- else {
- $topic = $topic . " ; product-5";
- }
- }
- if (isset($_POST['product-6'])) {
- if ($topic == null) {
- $topic = "product-6";
- }
- else {
- $topic = $topic . " ; product-6";
- }
- }
- if (isset($_POST['product-7'])) {
- if ($topic == null) {
- $topic = "product-7";
- }
- else {
- $topic = $topic . " ; product-7";
- }
- }
- if (isset($_POST['product-8'])) {
- if ($topic == null) {
- $topic = "product-8";
- }
- else {
- $topic = $topic . " ; product-8";
- }
- }
- if (isset($_POST['product-9'])) {
- if ($topic == null) {
- $topic = "product-9";
- }
- else {
- $topic = $topic . " ; product-9";
- }
- }
- if (isset($_POST['product-10'])) {
- if ($topic == null) {
- $topic = "product-10";
- }
- else {
- $topic = $topic . " ; product-10";
- }
- }
- if (isset($_POST['product-11'])) {
- if ($topic == null) {
- $topic = "product-11";
- }
- else {
- $topic = $topic . " ; product-11";
- }
- }
- if (isset($_POST['product-12'])) {
- if ($topic == null) {
- $topic = "product-12";
- }
- else {
- $topic = $topic . " ; product-12";
- }
- }
- if (isset($_POST['product-13'])) {
- if ($topic == null) {
- $topic = "product-13";
- }
- else {
- $topic = $topic . " ; product-13";
- }
- }
- if (isset($_POST['product-14'])) {
- if ($topic == null) {
- $topic = "product-14";
- }
- else {
- $topic = $topic . " ; product-14";
- }
- }
- if (isset($_POST['product-15'])) {
- if ($topic == null) {
- $topic = "product-15";
- }
- else {
- $topic = $topic . " ; product-15";
- }
- }
- if (isset($_POST['product-16'])) {
- if ($topic == null) {
- $topic = "product-16";
- }
- else {
- $topic = $topic . " ; product-16";
- }
- }
- if (isset($_POST['product-17'])) {
- if ($topic == null) {
- $topic = "product-17";
- }
- else {
- $topic = $topic . " ; product-17";
- }
- }
- if (isset($_POST['product-18'])) {
- if ($topic == null) {
- $topic = "product-18";
- }
- else {
- $topic = $topic . " ; product-18";
- }
- }
- if (isset($_POST['product-19'])) {
- if ($topic == null) {
- $topic = "product-19";
- }
- else {
- $topic = $topic . " ; product-19";
- }
- }
- if (isset($_POST['product-20'])) {
- if ($topic == null) {
- $topic = "product-20";
- }
- else {
- $topic = $topic . " ; product-20";
- }
- }
- if (isset($_POST['product-21'])) {
- if ($topic == null) {
- $topic = "product-21";
- }
- else {
- $topic = $topic . " ; product-21";
- }
- }
- if (isset($_POST['product-22'])) {
- if ($topic == null) {
- $topic = "product-22";
- }
- else {
- $topic = $topic . " ; product-22";
- }
- }
- if (isset($_POST['product-23'])) {
- if ($topic == null) {
- $topic = "product-23";
- }
- else {
- $topic = $topic . " ; product-23";
- }
- }
- if (isset($_POST['product-24'])) {
- if ($topic == null) {
- $topic = "product-24";
- }
- else {
- $topic = $topic . " ; product-24";
- }
- }
- if (isset($_POST['product-25'])) {
- if ($topic == null) {
- $topic = "product-25";
- }
- else {
- $topic = $topic . " ; product-25";
- }
- }
- if (isset($_POST['product-26'])) {
- if ($topic == null) {
- $topic = "product-26";
- }
- else {
- $topic = $topic . " ; product-26";
- }
- }
- if (isset($_POST['product-27'])) {
- if ($topic == null) {
- $topic = "product-27";
- }
- else {
- $topic = $topic . " ; product-27";
- }
- }
- if (isset($_POST['product-28'])) {
- if ($topic == null) {
- $topic = "product-28";
- }
- else {
- $topic = $topic . " ; product-28";
- }
- }
- if (isset($_POST['product-29'])) {
- if ($topic == null) {
- $topic = "product-29";
- }
- else {
- $topic = $topic . " ; product-29";
- }
- }
- if (isset($_POST['product-30'])) {
- if ($topic == null) {
- $topic = "product-30";
- }
- else {
- $topic = $topic . " ; product-30";
- }
- }
- if (isset($_POST['product-31'])) {
- if ($topic == null) {
- $topic = "product-31";
- }
- else {
- $topic = $topic . " ; product-31";
- }
- }
- if (isset($_POST['product-32'])) {
- if ($topic == null) {
- $topic = "product-32";
- }
- else {
- $topic = $topic . " ; product-32";
- }
- }
- if (isset($_POST['product-33'])) {
- if ($topic == null) {
- $topic = "product-33";
- }
- else {
- $topic = $topic . " ; product-33";
- }
- }
- if (isset($_POST['product-34'])) {
- if ($topic == null) {
- $topic = "product-34";
- }
- else {
- $topic = $topic . " ; product-34";
- }
- }
- if (isset($_POST['product-35'])) {
- if ($topic == null) {
- $topic = "product-35";
- }
- else {
- $topic = $topic . " ; product-35";
- }
- }
- if (isset($_POST['product-36'])) {
- if ($topic == null) {
- $topic = "product-36";
- }
- else {
- $topic = $topic . " ; product-36";
- }
- }
- if (isset($_POST['product-37'])) {
- if ($topic == null) {
- $topic = "product-37";
- }
- else {
- $topic = $topic . " ; product-37";
- }
- }
- if (isset($_POST['product-38'])) {
- if ($topic == null) {
- $topic = "product-38";
- }
- else {
- $topic = $topic . " ; product-38";
- }
- }
- if (isset($_POST['product-39'])) {
- if ($topic == null) {
- $topic = "product-39";
- }
- else {
- $topic = $topic . " ; product-39";
- }
- }
- if (isset($_POST['product-40'])) {
- if ($topic == null) {
- $topic = "product-40";
- }
- else {
- $topic = $topic . " ; product-40";
- }
- }
- }
- ?>
- <div id="product-form">
- <form action="product-enquire.php" method="POST">
- Name:<br /><input type="text" name="contact_name"><br /><br />
- Email address:<br /><input type="text" name="contact_email"><br /><br />
- Phone number:<br /><input type="text" name="contact_number"><br /><br />
- Address:<br />
- <textarea name="contact_address" rows="2" cols="30"></textarea><br /><br />
- Product Name(s):<br />
- <textarea name="contact_product" rows="2" cols="30"><?php echo $topic; ?></textarea><br /><br />
- Message:<br />
- <textarea name="contact_text" rows="6" cols="30"></textarea><br /><br />
- <input type="submit" value="Send">
- </form>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment