SpiralRock

product-enquiry PHP page

Aug 5th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 45.29 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.     <title>Product(s) Enquiry | Jayna Industry - Enquire about three wheeler spares, three wheeler parts, Piston pins</title>
  6.     <link rel="stylesheet" type="text/css" href="style.css" />
  7. </head>
  8.  
  9. <body>
  10.     <div id="topbar">
  11.         <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>      
  12.     </div>
  13.      
  14.     <div id="content">
  15.         <?php
  16.  
  17.             $topic = null;
  18.             $pageID = null;
  19.    
  20.             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']))
  21.             {
  22.                 $contact_name = $_POST['contact_name'];
  23.                 $contact_email = $_POST['contact_email'];
  24.                 $contact_product = $_POST['contact_product'];
  25.                 $contact_text = $_POST['contact_text'];
  26.                 $contact_number = $_POST['contact_number'];
  27.                 $contact_address = $_POST['contact_address'];
  28.        
  29.                 if(!empty($contact_name) && !empty($contact_email) && !empty($contact_text) && !empty($contact_number) && !empty($contact_address) && !empty($contact_product)){
  30.                     $to = '[email protected]';
  31.                     $subject = 'Contact Form Fillup Mail';
  32.                     $body = $contact_name."\n".$contact_number."\n".$contact_address."\n".$contact_product."\n".$contact_text;
  33.                     $headers = 'From: '.$contact_email;
  34.            
  35.                     if(@mail($to,$subject,$body,$headers)){
  36.                         echo 'Thanks for contacting us, We will be in touch.';
  37.                     }
  38.                     else{
  39.                         $topic = $_POST['contact_product'];
  40.                         echo 'Sorry, an error occurred';
  41.                     }
  42.                 }
  43.                 else{
  44.                     $topic = $_POST['contact_product'];
  45.                     echo 'All fields are required.';
  46.                 }
  47.             }
  48.    
  49.             if(isset($_POST['submit-enquiry1'])) {
  50.                 if (isset($_POST['product-1'])) {
  51.                     $topic = $topic . "1st Gear";
  52.                 }
  53.        
  54.                 if (isset($_POST['product-2'])) {
  55.                     if ($topic == null) {
  56.                         $topic = "product-2";
  57.                     }
  58.                     else {
  59.                         $topic = $topic . " ; product-2";
  60.                     }
  61.                 }
  62.        
  63.                 if (isset($_POST['product-3'])) {
  64.                     if ($topic == null) {
  65.                         $topic = "product-3";
  66.                     }
  67.                     else {
  68.                         $topic = $topic . " ; product-3";
  69.                     }
  70.                 }
  71.        
  72.                 if (isset($_POST['product-4'])) {
  73.                     if ($topic == null) {
  74.                         $topic = "product-4";
  75.                     }
  76.                     else {
  77.                         $topic = $topic . " ; product-4";
  78.                     }
  79.                 }
  80.        
  81.                 if (isset($_POST['product-5'])) {
  82.                     if ($topic == null) {
  83.                         $topic = "product-5";
  84.                     }
  85.                     else {
  86.                         $topic = $topic . " ; product-5";
  87.                     }
  88.                 }
  89.        
  90.                 if (isset($_POST['product-6'])) {
  91.                     if ($topic == null) {
  92.                         $topic = "product-6";
  93.                     }
  94.                     else {
  95.                         $topic = $topic . " ; product-6";
  96.                     }
  97.                 }
  98.        
  99.                 if (isset($_POST['product-7'])) {
  100.                     if ($topic == null) {
  101.                         $topic = "product-7";
  102.                     }
  103.                     else {
  104.                         $topic = $topic . " ; product-7";
  105.                     }
  106.                 }
  107.        
  108.                 if (isset($_POST['product-8'])) {
  109.                     if ($topic == null) {
  110.                         $topic = "product-8";
  111.                     }
  112.                     else {
  113.                         $topic = $topic . " ; product-8";
  114.                     }
  115.                 }
  116.        
  117.                 if (isset($_POST['product-9'])) {
  118.                     if ($topic == null) {
  119.                         $topic = "product-9";
  120.                     }
  121.                     else {
  122.                         $topic = $topic . " ; product-9";
  123.                     }
  124.                 }
  125.        
  126.                 if (isset($_POST['product-10'])) {
  127.                     if ($topic == null) {
  128.                         $topic = "product-10";
  129.                     }
  130.                     else {
  131.                         $topic = $topic . " ; product-10";
  132.                     }
  133.                 }
  134.        
  135.                 if (isset($_POST['product-11'])) {
  136.                     if ($topic == null) {
  137.                         $topic = "product-11";
  138.                     }
  139.                     else {
  140.                         $topic = $topic . " ; product-11";
  141.                     }
  142.                 }
  143.        
  144.                 if (isset($_POST['product-12'])) {
  145.                     if ($topic == null) {
  146.                         $topic = "product-12";
  147.                     }
  148.                     else {
  149.                         $topic = $topic . " ; product-12";
  150.                     }
  151.                 }
  152.        
  153.                 if (isset($_POST['product-13'])) {
  154.                     if ($topic == null) {
  155.                         $topic = "product-13";
  156.                     }
  157.                     else {
  158.                         $topic = $topic . " ; product-13";
  159.                     }
  160.                 }
  161.        
  162.                 if (isset($_POST['product-14'])) {
  163.                     if ($topic == null) {
  164.                         $topic = "product-14";
  165.                     }
  166.                     else {
  167.                         $topic = $topic . " ; product-14";
  168.                     }
  169.                 }
  170.        
  171.                 if (isset($_POST['product-15'])) {
  172.                     if ($topic == null) {
  173.                         $topic = "product-15";
  174.                     }
  175.                     else {
  176.                         $topic = $topic . " ; product-15";
  177.                     }
  178.                 }
  179.        
  180.                 if (isset($_POST['product-16'])) {
  181.                     if ($topic == null) {
  182.                         $topic = "product-16";
  183.                     }
  184.                     else {
  185.                         $topic = $topic . " ; product-16";
  186.                     }
  187.                 }
  188.        
  189.                 if (isset($_POST['product-17'])) {
  190.                     if ($topic == null) {
  191.                         $topic = "product-17";
  192.                     }
  193.                     else {
  194.                         $topic = $topic . " ; product-17";
  195.                     }
  196.                 }
  197.        
  198.                 if (isset($_POST['product-18'])) {
  199.                     if ($topic == null) {
  200.                         $topic = "product-18";
  201.                     }
  202.                     else {
  203.                         $topic = $topic . " ; product-18";
  204.                     }
  205.                 }
  206.        
  207.                 if (isset($_POST['product-19'])) {
  208.                     if ($topic == null) {
  209.                         $topic = "product-19";
  210.                     }
  211.                     else {
  212.                         $topic = $topic . " ; product-19";
  213.                     }
  214.                 }
  215.        
  216.                 if (isset($_POST['product-20'])) {
  217.                     if ($topic == null) {
  218.                         $topic = "product-20";
  219.                     }
  220.                     else {
  221.                         $topic = $topic . " ; product-20";
  222.                     }
  223.                 }
  224.                
  225.                 if (isset($_POST['product-21'])) {
  226.                     if ($topic == null) {
  227.                         $topic = "product-21";
  228.                     }
  229.                     else {
  230.                         $topic = $topic . " ; product-21";
  231.                     }
  232.                 }
  233.                
  234.                 if (isset($_POST['product-22'])) {
  235.                     if ($topic == null) {
  236.                         $topic = "product-22";
  237.                     }
  238.                     else {
  239.                         $topic = $topic . " ; product-22";
  240.                     }
  241.                 }
  242.                
  243.                 if (isset($_POST['product-23'])) {
  244.                     if ($topic == null) {
  245.                         $topic = "product-23";
  246.                     }
  247.                     else {
  248.                         $topic = $topic . " ; product-23";
  249.                     }
  250.                 }
  251.                
  252.                 if (isset($_POST['product-24'])) {
  253.                     if ($topic == null) {
  254.                         $topic = "product-24";
  255.                     }
  256.                     else {
  257.                         $topic = $topic . " ; product-24";
  258.                     }
  259.                 }
  260.                
  261.                 if (isset($_POST['product-25'])) {
  262.                     if ($topic == null) {
  263.                         $topic = "product-25";
  264.                     }
  265.                     else {
  266.                         $topic = $topic . " ; product-25";
  267.                     }
  268.                 }
  269.                
  270.                 if (isset($_POST['product-26'])) {
  271.                     if ($topic == null) {
  272.                         $topic = "product-26";
  273.                     }
  274.                     else {
  275.                         $topic = $topic . " ; product-26";
  276.                     }
  277.                 }
  278.                
  279.                 if (isset($_POST['product-27'])) {
  280.                     if ($topic == null) {
  281.                         $topic = "product-27";
  282.                     }
  283.                     else {
  284.                         $topic = $topic . " ; product-27";
  285.                     }
  286.                 }
  287.                
  288.                 if (isset($_POST['product-28'])) {
  289.                     if ($topic == null) {
  290.                         $topic = "product-28";
  291.                     }
  292.                     else {
  293.                         $topic = $topic . " ; product-28";
  294.                     }
  295.                 }
  296.                
  297.                 if (isset($_POST['product-29'])) {
  298.                     if ($topic == null) {
  299.                         $topic = "product-29";
  300.                     }
  301.                     else {
  302.                         $topic = $topic . " ; product-29";
  303.                     }
  304.                 }
  305.                
  306.                 if (isset($_POST['product-30'])) {
  307.                     if ($topic == null) {
  308.                         $topic = "product-30";
  309.                     }
  310.                     else {
  311.                         $topic = $topic . " ; product-30";
  312.                     }
  313.                 }
  314.                
  315.                 if (isset($_POST['product-31'])) {
  316.                     if ($topic == null) {
  317.                         $topic = "product-31";
  318.                     }
  319.                     else {
  320.                         $topic = $topic . " ; product-31";
  321.                     }
  322.                 }
  323.                
  324.                 if (isset($_POST['product-32'])) {
  325.                     if ($topic == null) {
  326.                         $topic = "product-32";
  327.                     }
  328.                     else {
  329.                         $topic = $topic . " ; product-32";
  330.                     }
  331.                 }
  332.                
  333.                 if (isset($_POST['product-33'])) {
  334.                     if ($topic == null) {
  335.                         $topic = "product-33";
  336.                     }
  337.                     else {
  338.                         $topic = $topic . " ; product-33";
  339.                     }
  340.                 }
  341.                
  342.                 if (isset($_POST['product-34'])) {
  343.                     if ($topic == null) {
  344.                         $topic = "product-34";
  345.                     }
  346.                     else {
  347.                         $topic = $topic . " ; product-34";
  348.                     }
  349.                 }
  350.                
  351.                 if (isset($_POST['product-35'])) {
  352.                     if ($topic == null) {
  353.                         $topic = "product-35";
  354.                     }
  355.                     else {
  356.                         $topic = $topic . " ; product-35";
  357.                     }
  358.                 }
  359.                
  360.                 if (isset($_POST['product-36'])) {
  361.                     if ($topic == null) {
  362.                         $topic = "product-36";
  363.                     }
  364.                     else {
  365.                         $topic = $topic . " ; product-36";
  366.                     }
  367.                 }
  368.                
  369.                 if (isset($_POST['product-37'])) {
  370.                     if ($topic == null) {
  371.                         $topic = "product-37";
  372.                     }
  373.                     else {
  374.                         $topic = $topic . " ; product-37";
  375.                     }
  376.                 }
  377.                
  378.                 if (isset($_POST['product-38'])) {
  379.                     if ($topic == null) {
  380.                         $topic = "product-38";
  381.                     }
  382.                     else {
  383.                         $topic = $topic . " ; product-38";
  384.                     }
  385.                 }
  386.                
  387.                 if (isset($_POST['product-39'])) {
  388.                     if ($topic == null) {
  389.                         $topic = "product-39";
  390.                     }
  391.                     else {
  392.                         $topic = $topic . " ; product-39";
  393.                     }
  394.                 }
  395.                
  396.                 if (isset($_POST['product-40'])) {
  397.                     if ($topic == null) {
  398.                         $topic = "product-40";
  399.                     }
  400.                     else {
  401.                         $topic = $topic . " ; product-40";
  402.                     }
  403.                 }
  404.             }
  405.            
  406.             //Product Category 2
  407.            
  408.             if(isset($_POST['submit-enquiry2'])) {
  409.                 if (isset($_POST['product-1'])) {
  410.                     $topic = $topic . $_POST['product-1'];
  411.                 }
  412.        
  413.                 if (isset($_POST['product-2'])) {
  414.                     if ($topic == null) {
  415.                         $topic = "product-2";
  416.                     }
  417.                     else {
  418.                         $topic = $topic . " ; product-2";
  419.                     }
  420.                 }
  421.        
  422.                 if (isset($_POST['product-3'])) {
  423.                     if ($topic == null) {
  424.                         $topic = "product-3";
  425.                     }
  426.                     else {
  427.                         $topic = $topic . " ; product-3";
  428.                     }
  429.                 }
  430.        
  431.                 if (isset($_POST['product-4'])) {
  432.                     if ($topic == null) {
  433.                         $topic = "product-4";
  434.                     }
  435.                     else {
  436.                         $topic = $topic . " ; product-4";
  437.                     }
  438.                 }
  439.        
  440.                 if (isset($_POST['product-5'])) {
  441.                     if ($topic == null) {
  442.                         $topic = "product-5";
  443.                     }
  444.                     else {
  445.                         $topic = $topic . " ; product-5";
  446.                     }
  447.                 }
  448.        
  449.                 if (isset($_POST['product-6'])) {
  450.                     if ($topic == null) {
  451.                         $topic = "product-6";
  452.                     }
  453.                     else {
  454.                         $topic = $topic . " ; product-6";
  455.                     }
  456.                 }
  457.        
  458.                 if (isset($_POST['product-7'])) {
  459.                     if ($topic == null) {
  460.                         $topic = "product-7";
  461.                     }
  462.                     else {
  463.                         $topic = $topic . " ; product-7";
  464.                     }
  465.                 }
  466.        
  467.                 if (isset($_POST['product-8'])) {
  468.                     if ($topic == null) {
  469.                         $topic = "product-8";
  470.                     }
  471.                     else {
  472.                         $topic = $topic . " ; product-8";
  473.                     }
  474.                 }
  475.        
  476.                 if (isset($_POST['product-9'])) {
  477.                     if ($topic == null) {
  478.                         $topic = "product-9";
  479.                     }
  480.                     else {
  481.                         $topic = $topic . " ; product-9";
  482.                     }
  483.                 }
  484.        
  485.                 if (isset($_POST['product-10'])) {
  486.                     if ($topic == null) {
  487.                         $topic = "product-10";
  488.                     }
  489.                     else {
  490.                         $topic = $topic . " ; product-10";
  491.                     }
  492.                 }
  493.        
  494.                 if (isset($_POST['product-11'])) {
  495.                     if ($topic == null) {
  496.                         $topic = "product-11";
  497.                     }
  498.                     else {
  499.                         $topic = $topic . " ; product-11";
  500.                     }
  501.                 }
  502.        
  503.                 if (isset($_POST['product-12'])) {
  504.                     if ($topic == null) {
  505.                         $topic = "product-12";
  506.                     }
  507.                     else {
  508.                         $topic = $topic . " ; product-12";
  509.                     }
  510.                 }
  511.        
  512.                 if (isset($_POST['product-13'])) {
  513.                     if ($topic == null) {
  514.                         $topic = "product-13";
  515.                     }
  516.                     else {
  517.                         $topic = $topic . " ; product-13";
  518.                     }
  519.                 }
  520.        
  521.                 if (isset($_POST['product-14'])) {
  522.                     if ($topic == null) {
  523.                         $topic = "product-14";
  524.                     }
  525.                     else {
  526.                         $topic = $topic . " ; product-14";
  527.                     }
  528.                 }
  529.        
  530.                 if (isset($_POST['product-15'])) {
  531.                     if ($topic == null) {
  532.                         $topic = "product-15";
  533.                     }
  534.                     else {
  535.                         $topic = $topic . " ; product-15";
  536.                     }
  537.                 }
  538.        
  539.                 if (isset($_POST['product-16'])) {
  540.                     if ($topic == null) {
  541.                         $topic = "product-16";
  542.                     }
  543.                     else {
  544.                         $topic = $topic . " ; product-16";
  545.                     }
  546.                 }
  547.        
  548.                 if (isset($_POST['product-17'])) {
  549.                     if ($topic == null) {
  550.                         $topic = "product-17";
  551.                     }
  552.                     else {
  553.                         $topic = $topic . " ; product-17";
  554.                     }
  555.                 }
  556.        
  557.                 if (isset($_POST['product-18'])) {
  558.                     if ($topic == null) {
  559.                         $topic = "product-18";
  560.                     }
  561.                     else {
  562.                         $topic = $topic . " ; product-18";
  563.                     }
  564.                 }
  565.        
  566.                 if (isset($_POST['product-19'])) {
  567.                     if ($topic == null) {
  568.                         $topic = "product-19";
  569.                     }
  570.                     else {
  571.                         $topic = $topic . " ; product-19";
  572.                     }
  573.                 }
  574.        
  575.                 if (isset($_POST['product-20'])) {
  576.                     if ($topic == null) {
  577.                         $topic = "product-20";
  578.                     }
  579.                     else {
  580.                         $topic = $topic . " ; product-20";
  581.                     }
  582.                 }
  583.                
  584.                 if (isset($_POST['product-21'])) {
  585.                     if ($topic == null) {
  586.                         $topic = "product-21";
  587.                     }
  588.                     else {
  589.                         $topic = $topic . " ; product-21";
  590.                     }
  591.                 }
  592.                
  593.                 if (isset($_POST['product-22'])) {
  594.                     if ($topic == null) {
  595.                         $topic = "product-22";
  596.                     }
  597.                     else {
  598.                         $topic = $topic . " ; product-22";
  599.                     }
  600.                 }
  601.                
  602.                 if (isset($_POST['product-23'])) {
  603.                     if ($topic == null) {
  604.                         $topic = "product-23";
  605.                     }
  606.                     else {
  607.                         $topic = $topic . " ; product-23";
  608.                     }
  609.                 }
  610.                
  611.                 if (isset($_POST['product-24'])) {
  612.                     if ($topic == null) {
  613.                         $topic = "product-24";
  614.                     }
  615.                     else {
  616.                         $topic = $topic . " ; product-24";
  617.                     }
  618.                 }
  619.                
  620.                 if (isset($_POST['product-25'])) {
  621.                     if ($topic == null) {
  622.                         $topic = "product-25";
  623.                     }
  624.                     else {
  625.                         $topic = $topic . " ; product-25";
  626.                     }
  627.                 }
  628.                
  629.                 if (isset($_POST['product-26'])) {
  630.                     if ($topic == null) {
  631.                         $topic = "product-26";
  632.                     }
  633.                     else {
  634.                         $topic = $topic . " ; product-26";
  635.                     }
  636.                 }
  637.                
  638.                 if (isset($_POST['product-27'])) {
  639.                     if ($topic == null) {
  640.                         $topic = "product-27";
  641.                     }
  642.                     else {
  643.                         $topic = $topic . " ; product-27";
  644.                     }
  645.                 }
  646.                
  647.                 if (isset($_POST['product-28'])) {
  648.                     if ($topic == null) {
  649.                         $topic = "product-28";
  650.                     }
  651.                     else {
  652.                         $topic = $topic . " ; product-28";
  653.                     }
  654.                 }
  655.                
  656.                 if (isset($_POST['product-29'])) {
  657.                     if ($topic == null) {
  658.                         $topic = "product-29";
  659.                     }
  660.                     else {
  661.                         $topic = $topic . " ; product-29";
  662.                     }
  663.                 }
  664.                
  665.                 if (isset($_POST['product-30'])) {
  666.                     if ($topic == null) {
  667.                         $topic = "product-30";
  668.                     }
  669.                     else {
  670.                         $topic = $topic . " ; product-30";
  671.                     }
  672.                 }
  673.                
  674.                 if (isset($_POST['product-31'])) {
  675.                     if ($topic == null) {
  676.                         $topic = "product-31";
  677.                     }
  678.                     else {
  679.                         $topic = $topic . " ; product-31";
  680.                     }
  681.                 }
  682.                
  683.                 if (isset($_POST['product-32'])) {
  684.                     if ($topic == null) {
  685.                         $topic = "product-32";
  686.                     }
  687.                     else {
  688.                         $topic = $topic . " ; product-32";
  689.                     }
  690.                 }
  691.                
  692.                 if (isset($_POST['product-33'])) {
  693.                     if ($topic == null) {
  694.                         $topic = "product-33";
  695.                     }
  696.                     else {
  697.                         $topic = $topic . " ; product-33";
  698.                     }
  699.                 }
  700.                
  701.                 if (isset($_POST['product-34'])) {
  702.                     if ($topic == null) {
  703.                         $topic = "product-34";
  704.                     }
  705.                     else {
  706.                         $topic = $topic . " ; product-34";
  707.                     }
  708.                 }
  709.                
  710.                 if (isset($_POST['product-35'])) {
  711.                     if ($topic == null) {
  712.                         $topic = "product-35";
  713.                     }
  714.                     else {
  715.                         $topic = $topic . " ; product-35";
  716.                     }
  717.                 }
  718.                
  719.                 if (isset($_POST['product-36'])) {
  720.                     if ($topic == null) {
  721.                         $topic = "product-36";
  722.                     }
  723.                     else {
  724.                         $topic = $topic . " ; product-36";
  725.                     }
  726.                 }
  727.                
  728.                 if (isset($_POST['product-37'])) {
  729.                     if ($topic == null) {
  730.                         $topic = "product-37";
  731.                     }
  732.                     else {
  733.                         $topic = $topic . " ; product-37";
  734.                     }
  735.                 }
  736.                
  737.                 if (isset($_POST['product-38'])) {
  738.                     if ($topic == null) {
  739.                         $topic = "product-38";
  740.                     }
  741.                     else {
  742.                         $topic = $topic . " ; product-38";
  743.                     }
  744.                 }
  745.                
  746.                 if (isset($_POST['product-39'])) {
  747.                     if ($topic == null) {
  748.                         $topic = "product-39";
  749.                     }
  750.                     else {
  751.                         $topic = $topic . " ; product-39";
  752.                     }
  753.                 }
  754.                
  755.                 if (isset($_POST['product-40'])) {
  756.                     if ($topic == null) {
  757.                         $topic = "product-40";
  758.                     }
  759.                     else {
  760.                         $topic = $topic . " ; product-40";
  761.                     }
  762.                 }
  763.             }
  764.            
  765.             //Product Category 3
  766.            
  767.             if(isset($_POST['submit-enquiry3'])) {
  768.                 if (isset($_POST['product-1'])) {
  769.                     $topic = $topic . $_POST['product-1'];
  770.                 }
  771.        
  772.                 if (isset($_POST['product-2'])) {
  773.                     if ($topic == null) {
  774.                         $topic = "product-2";
  775.                     }
  776.                     else {
  777.                         $topic = $topic . " ; product-2";
  778.                     }
  779.                 }
  780.        
  781.                 if (isset($_POST['product-3'])) {
  782.                     if ($topic == null) {
  783.                         $topic = "product-3";
  784.                     }
  785.                     else {
  786.                         $topic = $topic . " ; product-3";
  787.                     }
  788.                 }
  789.        
  790.                 if (isset($_POST['product-4'])) {
  791.                     if ($topic == null) {
  792.                         $topic = "product-4";
  793.                     }
  794.                     else {
  795.                         $topic = $topic . " ; product-4";
  796.                     }
  797.                 }
  798.        
  799.                 if (isset($_POST['product-5'])) {
  800.                     if ($topic == null) {
  801.                         $topic = "product-5";
  802.                     }
  803.                     else {
  804.                         $topic = $topic . " ; product-5";
  805.                     }
  806.                 }
  807.        
  808.                 if (isset($_POST['product-6'])) {
  809.                     if ($topic == null) {
  810.                         $topic = "product-6";
  811.                     }
  812.                     else {
  813.                         $topic = $topic . " ; product-6";
  814.                     }
  815.                 }
  816.        
  817.                 if (isset($_POST['product-7'])) {
  818.                     if ($topic == null) {
  819.                         $topic = "product-7";
  820.                     }
  821.                     else {
  822.                         $topic = $topic . " ; product-7";
  823.                     }
  824.                 }
  825.        
  826.                 if (isset($_POST['product-8'])) {
  827.                     if ($topic == null) {
  828.                         $topic = "product-8";
  829.                     }
  830.                     else {
  831.                         $topic = $topic . " ; product-8";
  832.                     }
  833.                 }
  834.        
  835.                 if (isset($_POST['product-9'])) {
  836.                     if ($topic == null) {
  837.                         $topic = "product-9";
  838.                     }
  839.                     else {
  840.                         $topic = $topic . " ; product-9";
  841.                     }
  842.                 }
  843.        
  844.                 if (isset($_POST['product-10'])) {
  845.                     if ($topic == null) {
  846.                         $topic = "product-10";
  847.                     }
  848.                     else {
  849.                         $topic = $topic . " ; product-10";
  850.                     }
  851.                 }
  852.        
  853.                 if (isset($_POST['product-11'])) {
  854.                     if ($topic == null) {
  855.                         $topic = "product-11";
  856.                     }
  857.                     else {
  858.                         $topic = $topic . " ; product-11";
  859.                     }
  860.                 }
  861.        
  862.                 if (isset($_POST['product-12'])) {
  863.                     if ($topic == null) {
  864.                         $topic = "product-12";
  865.                     }
  866.                     else {
  867.                         $topic = $topic . " ; product-12";
  868.                     }
  869.                 }
  870.        
  871.                 if (isset($_POST['product-13'])) {
  872.                     if ($topic == null) {
  873.                         $topic = "product-13";
  874.                     }
  875.                     else {
  876.                         $topic = $topic . " ; product-13";
  877.                     }
  878.                 }
  879.        
  880.                 if (isset($_POST['product-14'])) {
  881.                     if ($topic == null) {
  882.                         $topic = "product-14";
  883.                     }
  884.                     else {
  885.                         $topic = $topic . " ; product-14";
  886.                     }
  887.                 }
  888.        
  889.                 if (isset($_POST['product-15'])) {
  890.                     if ($topic == null) {
  891.                         $topic = "product-15";
  892.                     }
  893.                     else {
  894.                         $topic = $topic . " ; product-15";
  895.                     }
  896.                 }
  897.        
  898.                 if (isset($_POST['product-16'])) {
  899.                     if ($topic == null) {
  900.                         $topic = "product-16";
  901.                     }
  902.                     else {
  903.                         $topic = $topic . " ; product-16";
  904.                     }
  905.                 }
  906.        
  907.                 if (isset($_POST['product-17'])) {
  908.                     if ($topic == null) {
  909.                         $topic = "product-17";
  910.                     }
  911.                     else {
  912.                         $topic = $topic . " ; product-17";
  913.                     }
  914.                 }
  915.        
  916.                 if (isset($_POST['product-18'])) {
  917.                     if ($topic == null) {
  918.                         $topic = "product-18";
  919.                     }
  920.                     else {
  921.                         $topic = $topic . " ; product-18";
  922.                     }
  923.                 }
  924.        
  925.                 if (isset($_POST['product-19'])) {
  926.                     if ($topic == null) {
  927.                         $topic = "product-19";
  928.                     }
  929.                     else {
  930.                         $topic = $topic . " ; product-19";
  931.                     }
  932.                 }
  933.        
  934.                 if (isset($_POST['product-20'])) {
  935.                     if ($topic == null) {
  936.                         $topic = "product-20";
  937.                     }
  938.                     else {
  939.                         $topic = $topic . " ; product-20";
  940.                     }
  941.                 }
  942.                
  943.                 if (isset($_POST['product-21'])) {
  944.                     if ($topic == null) {
  945.                         $topic = "product-21";
  946.                     }
  947.                     else {
  948.                         $topic = $topic . " ; product-21";
  949.                     }
  950.                 }
  951.                
  952.                 if (isset($_POST['product-22'])) {
  953.                     if ($topic == null) {
  954.                         $topic = "product-22";
  955.                     }
  956.                     else {
  957.                         $topic = $topic . " ; product-22";
  958.                     }
  959.                 }
  960.                
  961.                 if (isset($_POST['product-23'])) {
  962.                     if ($topic == null) {
  963.                         $topic = "product-23";
  964.                     }
  965.                     else {
  966.                         $topic = $topic . " ; product-23";
  967.                     }
  968.                 }
  969.                
  970.                 if (isset($_POST['product-24'])) {
  971.                     if ($topic == null) {
  972.                         $topic = "product-24";
  973.                     }
  974.                     else {
  975.                         $topic = $topic . " ; product-24";
  976.                     }
  977.                 }
  978.                
  979.                 if (isset($_POST['product-25'])) {
  980.                     if ($topic == null) {
  981.                         $topic = "product-25";
  982.                     }
  983.                     else {
  984.                         $topic = $topic . " ; product-25";
  985.                     }
  986.                 }
  987.                
  988.                 if (isset($_POST['product-26'])) {
  989.                     if ($topic == null) {
  990.                         $topic = "product-26";
  991.                     }
  992.                     else {
  993.                         $topic = $topic . " ; product-26";
  994.                     }
  995.                 }
  996.                
  997.                 if (isset($_POST['product-27'])) {
  998.                     if ($topic == null) {
  999.                         $topic = "product-27";
  1000.                     }
  1001.                     else {
  1002.                         $topic = $topic . " ; product-27";
  1003.                     }
  1004.                 }
  1005.                
  1006.                 if (isset($_POST['product-28'])) {
  1007.                     if ($topic == null) {
  1008.                         $topic = "product-28";
  1009.                     }
  1010.                     else {
  1011.                         $topic = $topic . " ; product-28";
  1012.                     }
  1013.                 }
  1014.                
  1015.                 if (isset($_POST['product-29'])) {
  1016.                     if ($topic == null) {
  1017.                         $topic = "product-29";
  1018.                     }
  1019.                     else {
  1020.                         $topic = $topic . " ; product-29";
  1021.                     }
  1022.                 }
  1023.                
  1024.                 if (isset($_POST['product-30'])) {
  1025.                     if ($topic == null) {
  1026.                         $topic = "product-30";
  1027.                     }
  1028.                     else {
  1029.                         $topic = $topic . " ; product-30";
  1030.                     }
  1031.                 }
  1032.                
  1033.                 if (isset($_POST['product-31'])) {
  1034.                     if ($topic == null) {
  1035.                         $topic = "product-31";
  1036.                     }
  1037.                     else {
  1038.                         $topic = $topic . " ; product-31";
  1039.                     }
  1040.                 }
  1041.                
  1042.                 if (isset($_POST['product-32'])) {
  1043.                     if ($topic == null) {
  1044.                         $topic = "product-32";
  1045.                     }
  1046.                     else {
  1047.                         $topic = $topic . " ; product-32";
  1048.                     }
  1049.                 }
  1050.                
  1051.                 if (isset($_POST['product-33'])) {
  1052.                     if ($topic == null) {
  1053.                         $topic = "product-33";
  1054.                     }
  1055.                     else {
  1056.                         $topic = $topic . " ; product-33";
  1057.                     }
  1058.                 }
  1059.                
  1060.                 if (isset($_POST['product-34'])) {
  1061.                     if ($topic == null) {
  1062.                         $topic = "product-34";
  1063.                     }
  1064.                     else {
  1065.                         $topic = $topic . " ; product-34";
  1066.                     }
  1067.                 }
  1068.                
  1069.                 if (isset($_POST['product-35'])) {
  1070.                     if ($topic == null) {
  1071.                         $topic = "product-35";
  1072.                     }
  1073.                     else {
  1074.                         $topic = $topic . " ; product-35";
  1075.                     }
  1076.                 }
  1077.                
  1078.                 if (isset($_POST['product-36'])) {
  1079.                     if ($topic == null) {
  1080.                         $topic = "product-36";
  1081.                     }
  1082.                     else {
  1083.                         $topic = $topic . " ; product-36";
  1084.                     }
  1085.                 }
  1086.                
  1087.                 if (isset($_POST['product-37'])) {
  1088.                     if ($topic == null) {
  1089.                         $topic = "product-37";
  1090.                     }
  1091.                     else {
  1092.                         $topic = $topic . " ; product-37";
  1093.                     }
  1094.                 }
  1095.                
  1096.                 if (isset($_POST['product-38'])) {
  1097.                     if ($topic == null) {
  1098.                         $topic = "product-38";
  1099.                     }
  1100.                     else {
  1101.                         $topic = $topic . " ; product-38";
  1102.                     }
  1103.                 }
  1104.                
  1105.                 if (isset($_POST['product-39'])) {
  1106.                     if ($topic == null) {
  1107.                         $topic = "product-39";
  1108.                     }
  1109.                     else {
  1110.                         $topic = $topic . " ; product-39";
  1111.                     }
  1112.                 }
  1113.                
  1114.                 if (isset($_POST['product-40'])) {
  1115.                     if ($topic == null) {
  1116.                         $topic = "product-40";
  1117.                     }
  1118.                     else {
  1119.                         $topic = $topic . " ; product-40";
  1120.                     }
  1121.                 }
  1122.             }
  1123.            
  1124.             //Product category 4
  1125.            
  1126.             if(isset($_POST['submit-enquiry4'])) {
  1127.                 if (isset($_POST['product-1'])) {
  1128.                     $topic = $topic . $_POST['product-1'];
  1129.                 }
  1130.        
  1131.                 if (isset($_POST['product-2'])) {
  1132.                     if ($topic == null) {
  1133.                         $topic = "product-2";
  1134.                     }
  1135.                     else {
  1136.                         $topic = $topic . " ; product-2";
  1137.                     }
  1138.                 }
  1139.        
  1140.                 if (isset($_POST['product-3'])) {
  1141.                     if ($topic == null) {
  1142.                         $topic = "product-3";
  1143.                     }
  1144.                     else {
  1145.                         $topic = $topic . " ; product-3";
  1146.                     }
  1147.                 }
  1148.        
  1149.                 if (isset($_POST['product-4'])) {
  1150.                     if ($topic == null) {
  1151.                         $topic = "product-4";
  1152.                     }
  1153.                     else {
  1154.                         $topic = $topic . " ; product-4";
  1155.                     }
  1156.                 }
  1157.        
  1158.                 if (isset($_POST['product-5'])) {
  1159.                     if ($topic == null) {
  1160.                         $topic = "product-5";
  1161.                     }
  1162.                     else {
  1163.                         $topic = $topic . " ; product-5";
  1164.                     }
  1165.                 }
  1166.        
  1167.                 if (isset($_POST['product-6'])) {
  1168.                     if ($topic == null) {
  1169.                         $topic = "product-6";
  1170.                     }
  1171.                     else {
  1172.                         $topic = $topic . " ; product-6";
  1173.                     }
  1174.                 }
  1175.        
  1176.                 if (isset($_POST['product-7'])) {
  1177.                     if ($topic == null) {
  1178.                         $topic = "product-7";
  1179.                     }
  1180.                     else {
  1181.                         $topic = $topic . " ; product-7";
  1182.                     }
  1183.                 }
  1184.        
  1185.                 if (isset($_POST['product-8'])) {
  1186.                     if ($topic == null) {
  1187.                         $topic = "product-8";
  1188.                     }
  1189.                     else {
  1190.                         $topic = $topic . " ; product-8";
  1191.                     }
  1192.                 }
  1193.        
  1194.                 if (isset($_POST['product-9'])) {
  1195.                     if ($topic == null) {
  1196.                         $topic = "product-9";
  1197.                     }
  1198.                     else {
  1199.                         $topic = $topic . " ; product-9";
  1200.                     }
  1201.                 }
  1202.        
  1203.                 if (isset($_POST['product-10'])) {
  1204.                     if ($topic == null) {
  1205.                         $topic = "product-10";
  1206.                     }
  1207.                     else {
  1208.                         $topic = $topic . " ; product-10";
  1209.                     }
  1210.                 }
  1211.        
  1212.                 if (isset($_POST['product-11'])) {
  1213.                     if ($topic == null) {
  1214.                         $topic = "product-11";
  1215.                     }
  1216.                     else {
  1217.                         $topic = $topic . " ; product-11";
  1218.                     }
  1219.                 }
  1220.        
  1221.                 if (isset($_POST['product-12'])) {
  1222.                     if ($topic == null) {
  1223.                         $topic = "product-12";
  1224.                     }
  1225.                     else {
  1226.                         $topic = $topic . " ; product-12";
  1227.                     }
  1228.                 }
  1229.        
  1230.                 if (isset($_POST['product-13'])) {
  1231.                     if ($topic == null) {
  1232.                         $topic = "product-13";
  1233.                     }
  1234.                     else {
  1235.                         $topic = $topic . " ; product-13";
  1236.                     }
  1237.                 }
  1238.        
  1239.                 if (isset($_POST['product-14'])) {
  1240.                     if ($topic == null) {
  1241.                         $topic = "product-14";
  1242.                     }
  1243.                     else {
  1244.                         $topic = $topic . " ; product-14";
  1245.                     }
  1246.                 }
  1247.        
  1248.                 if (isset($_POST['product-15'])) {
  1249.                     if ($topic == null) {
  1250.                         $topic = "product-15";
  1251.                     }
  1252.                     else {
  1253.                         $topic = $topic . " ; product-15";
  1254.                     }
  1255.                 }
  1256.        
  1257.                 if (isset($_POST['product-16'])) {
  1258.                     if ($topic == null) {
  1259.                         $topic = "product-16";
  1260.                     }
  1261.                     else {
  1262.                         $topic = $topic . " ; product-16";
  1263.                     }
  1264.                 }
  1265.        
  1266.                 if (isset($_POST['product-17'])) {
  1267.                     if ($topic == null) {
  1268.                         $topic = "product-17";
  1269.                     }
  1270.                     else {
  1271.                         $topic = $topic . " ; product-17";
  1272.                     }
  1273.                 }
  1274.        
  1275.                 if (isset($_POST['product-18'])) {
  1276.                     if ($topic == null) {
  1277.                         $topic = "product-18";
  1278.                     }
  1279.                     else {
  1280.                         $topic = $topic . " ; product-18";
  1281.                     }
  1282.                 }
  1283.        
  1284.                 if (isset($_POST['product-19'])) {
  1285.                     if ($topic == null) {
  1286.                         $topic = "product-19";
  1287.                     }
  1288.                     else {
  1289.                         $topic = $topic . " ; product-19";
  1290.                     }
  1291.                 }
  1292.        
  1293.                 if (isset($_POST['product-20'])) {
  1294.                     if ($topic == null) {
  1295.                         $topic = "product-20";
  1296.                     }
  1297.                     else {
  1298.                         $topic = $topic . " ; product-20";
  1299.                     }
  1300.                 }
  1301.                
  1302.                 if (isset($_POST['product-21'])) {
  1303.                     if ($topic == null) {
  1304.                         $topic = "product-21";
  1305.                     }
  1306.                     else {
  1307.                         $topic = $topic . " ; product-21";
  1308.                     }
  1309.                 }
  1310.                
  1311.                 if (isset($_POST['product-22'])) {
  1312.                     if ($topic == null) {
  1313.                         $topic = "product-22";
  1314.                     }
  1315.                     else {
  1316.                         $topic = $topic . " ; product-22";
  1317.                     }
  1318.                 }
  1319.                
  1320.                 if (isset($_POST['product-23'])) {
  1321.                     if ($topic == null) {
  1322.                         $topic = "product-23";
  1323.                     }
  1324.                     else {
  1325.                         $topic = $topic . " ; product-23";
  1326.                     }
  1327.                 }
  1328.                
  1329.                 if (isset($_POST['product-24'])) {
  1330.                     if ($topic == null) {
  1331.                         $topic = "product-24";
  1332.                     }
  1333.                     else {
  1334.                         $topic = $topic . " ; product-24";
  1335.                     }
  1336.                 }
  1337.                
  1338.                 if (isset($_POST['product-25'])) {
  1339.                     if ($topic == null) {
  1340.                         $topic = "product-25";
  1341.                     }
  1342.                     else {
  1343.                         $topic = $topic . " ; product-25";
  1344.                     }
  1345.                 }
  1346.                
  1347.                 if (isset($_POST['product-26'])) {
  1348.                     if ($topic == null) {
  1349.                         $topic = "product-26";
  1350.                     }
  1351.                     else {
  1352.                         $topic = $topic . " ; product-26";
  1353.                     }
  1354.                 }
  1355.                
  1356.                 if (isset($_POST['product-27'])) {
  1357.                     if ($topic == null) {
  1358.                         $topic = "product-27";
  1359.                     }
  1360.                     else {
  1361.                         $topic = $topic . " ; product-27";
  1362.                     }
  1363.                 }
  1364.                
  1365.                 if (isset($_POST['product-28'])) {
  1366.                     if ($topic == null) {
  1367.                         $topic = "product-28";
  1368.                     }
  1369.                     else {
  1370.                         $topic = $topic . " ; product-28";
  1371.                     }
  1372.                 }
  1373.                
  1374.                 if (isset($_POST['product-29'])) {
  1375.                     if ($topic == null) {
  1376.                         $topic = "product-29";
  1377.                     }
  1378.                     else {
  1379.                         $topic = $topic . " ; product-29";
  1380.                     }
  1381.                 }
  1382.                
  1383.                 if (isset($_POST['product-30'])) {
  1384.                     if ($topic == null) {
  1385.                         $topic = "product-30";
  1386.                     }
  1387.                     else {
  1388.                         $topic = $topic . " ; product-30";
  1389.                     }
  1390.                 }
  1391.                
  1392.                 if (isset($_POST['product-31'])) {
  1393.                     if ($topic == null) {
  1394.                         $topic = "product-31";
  1395.                     }
  1396.                     else {
  1397.                         $topic = $topic . " ; product-31";
  1398.                     }
  1399.                 }
  1400.                
  1401.                 if (isset($_POST['product-32'])) {
  1402.                     if ($topic == null) {
  1403.                         $topic = "product-32";
  1404.                     }
  1405.                     else {
  1406.                         $topic = $topic . " ; product-32";
  1407.                     }
  1408.                 }
  1409.                
  1410.                 if (isset($_POST['product-33'])) {
  1411.                     if ($topic == null) {
  1412.                         $topic = "product-33";
  1413.                     }
  1414.                     else {
  1415.                         $topic = $topic . " ; product-33";
  1416.                     }
  1417.                 }
  1418.                
  1419.                 if (isset($_POST['product-34'])) {
  1420.                     if ($topic == null) {
  1421.                         $topic = "product-34";
  1422.                     }
  1423.                     else {
  1424.                         $topic = $topic . " ; product-34";
  1425.                     }
  1426.                 }
  1427.                
  1428.                 if (isset($_POST['product-35'])) {
  1429.                     if ($topic == null) {
  1430.                         $topic = "product-35";
  1431.                     }
  1432.                     else {
  1433.                         $topic = $topic . " ; product-35";
  1434.                     }
  1435.                 }
  1436.                
  1437.                 if (isset($_POST['product-36'])) {
  1438.                     if ($topic == null) {
  1439.                         $topic = "product-36";
  1440.                     }
  1441.                     else {
  1442.                         $topic = $topic . " ; product-36";
  1443.                     }
  1444.                 }
  1445.                
  1446.                 if (isset($_POST['product-37'])) {
  1447.                     if ($topic == null) {
  1448.                         $topic = "product-37";
  1449.                     }
  1450.                     else {
  1451.                         $topic = $topic . " ; product-37";
  1452.                     }
  1453.                 }
  1454.                
  1455.                 if (isset($_POST['product-38'])) {
  1456.                     if ($topic == null) {
  1457.                         $topic = "product-38";
  1458.                     }
  1459.                     else {
  1460.                         $topic = $topic . " ; product-38";
  1461.                     }
  1462.                 }
  1463.                
  1464.                 if (isset($_POST['product-39'])) {
  1465.                     if ($topic == null) {
  1466.                         $topic = "product-39";
  1467.                     }
  1468.                     else {
  1469.                         $topic = $topic . " ; product-39";
  1470.                     }
  1471.                 }
  1472.                
  1473.                 if (isset($_POST['product-40'])) {
  1474.                     if ($topic == null) {
  1475.                         $topic = "product-40";
  1476.                     }
  1477.                     else {
  1478.                         $topic = $topic . " ; product-40";
  1479.                     }
  1480.                 }
  1481.             }
  1482.            
  1483.             //Product Category 5
  1484.            
  1485.             if(isset($_POST['submit-enquiry5'])) {
  1486.                 if (isset($_POST['product-1'])) {
  1487.                     $topic = $topic . $_POST['product-1'];
  1488.                 }
  1489.        
  1490.                 if (isset($_POST['product-2'])) {
  1491.                     if ($topic == null) {
  1492.                         $topic = "product-2";
  1493.                     }
  1494.                     else {
  1495.                         $topic = $topic . " ; product-2";
  1496.                     }
  1497.                 }
  1498.        
  1499.                 if (isset($_POST['product-3'])) {
  1500.                     if ($topic == null) {
  1501.                         $topic = "product-3";
  1502.                     }
  1503.                     else {
  1504.                         $topic = $topic . " ; product-3";
  1505.                     }
  1506.                 }
  1507.        
  1508.                 if (isset($_POST['product-4'])) {
  1509.                     if ($topic == null) {
  1510.                         $topic = "product-4";
  1511.                     }
  1512.                     else {
  1513.                         $topic = $topic . " ; product-4";
  1514.                     }
  1515.                 }
  1516.        
  1517.                 if (isset($_POST['product-5'])) {
  1518.                     if ($topic == null) {
  1519.                         $topic = "product-5";
  1520.                     }
  1521.                     else {
  1522.                         $topic = $topic . " ; product-5";
  1523.                     }
  1524.                 }
  1525.        
  1526.                 if (isset($_POST['product-6'])) {
  1527.                     if ($topic == null) {
  1528.                         $topic = "product-6";
  1529.                     }
  1530.                     else {
  1531.                         $topic = $topic . " ; product-6";
  1532.                     }
  1533.                 }
  1534.        
  1535.                 if (isset($_POST['product-7'])) {
  1536.                     if ($topic == null) {
  1537.                         $topic = "product-7";
  1538.                     }
  1539.                     else {
  1540.                         $topic = $topic . " ; product-7";
  1541.                     }
  1542.                 }
  1543.        
  1544.                 if (isset($_POST['product-8'])) {
  1545.                     if ($topic == null) {
  1546.                         $topic = "product-8";
  1547.                     }
  1548.                     else {
  1549.                         $topic = $topic . " ; product-8";
  1550.                     }
  1551.                 }
  1552.        
  1553.                 if (isset($_POST['product-9'])) {
  1554.                     if ($topic == null) {
  1555.                         $topic = "product-9";
  1556.                     }
  1557.                     else {
  1558.                         $topic = $topic . " ; product-9";
  1559.                     }
  1560.                 }
  1561.        
  1562.                 if (isset($_POST['product-10'])) {
  1563.                     if ($topic == null) {
  1564.                         $topic = "product-10";
  1565.                     }
  1566.                     else {
  1567.                         $topic = $topic . " ; product-10";
  1568.                     }
  1569.                 }
  1570.        
  1571.                 if (isset($_POST['product-11'])) {
  1572.                     if ($topic == null) {
  1573.                         $topic = "product-11";
  1574.                     }
  1575.                     else {
  1576.                         $topic = $topic . " ; product-11";
  1577.                     }
  1578.                 }
  1579.        
  1580.                 if (isset($_POST['product-12'])) {
  1581.                     if ($topic == null) {
  1582.                         $topic = "product-12";
  1583.                     }
  1584.                     else {
  1585.                         $topic = $topic . " ; product-12";
  1586.                     }
  1587.                 }
  1588.        
  1589.                 if (isset($_POST['product-13'])) {
  1590.                     if ($topic == null) {
  1591.                         $topic = "product-13";
  1592.                     }
  1593.                     else {
  1594.                         $topic = $topic . " ; product-13";
  1595.                     }
  1596.                 }
  1597.        
  1598.                 if (isset($_POST['product-14'])) {
  1599.                     if ($topic == null) {
  1600.                         $topic = "product-14";
  1601.                     }
  1602.                     else {
  1603.                         $topic = $topic . " ; product-14";
  1604.                     }
  1605.                 }
  1606.        
  1607.                 if (isset($_POST['product-15'])) {
  1608.                     if ($topic == null) {
  1609.                         $topic = "product-15";
  1610.                     }
  1611.                     else {
  1612.                         $topic = $topic . " ; product-15";
  1613.                     }
  1614.                 }
  1615.        
  1616.                 if (isset($_POST['product-16'])) {
  1617.                     if ($topic == null) {
  1618.                         $topic = "product-16";
  1619.                     }
  1620.                     else {
  1621.                         $topic = $topic . " ; product-16";
  1622.                     }
  1623.                 }
  1624.        
  1625.                 if (isset($_POST['product-17'])) {
  1626.                     if ($topic == null) {
  1627.                         $topic = "product-17";
  1628.                     }
  1629.                     else {
  1630.                         $topic = $topic . " ; product-17";
  1631.                     }
  1632.                 }
  1633.        
  1634.                 if (isset($_POST['product-18'])) {
  1635.                     if ($topic == null) {
  1636.                         $topic = "product-18";
  1637.                     }
  1638.                     else {
  1639.                         $topic = $topic . " ; product-18";
  1640.                     }
  1641.                 }
  1642.        
  1643.                 if (isset($_POST['product-19'])) {
  1644.                     if ($topic == null) {
  1645.                         $topic = "product-19";
  1646.                     }
  1647.                     else {
  1648.                         $topic = $topic . " ; product-19";
  1649.                     }
  1650.                 }
  1651.        
  1652.                 if (isset($_POST['product-20'])) {
  1653.                     if ($topic == null) {
  1654.                         $topic = "product-20";
  1655.                     }
  1656.                     else {
  1657.                         $topic = $topic . " ; product-20";
  1658.                     }
  1659.                 }
  1660.                
  1661.                 if (isset($_POST['product-21'])) {
  1662.                     if ($topic == null) {
  1663.                         $topic = "product-21";
  1664.                     }
  1665.                     else {
  1666.                         $topic = $topic . " ; product-21";
  1667.                     }
  1668.                 }
  1669.                
  1670.                 if (isset($_POST['product-22'])) {
  1671.                     if ($topic == null) {
  1672.                         $topic = "product-22";
  1673.                     }
  1674.                     else {
  1675.                         $topic = $topic . " ; product-22";
  1676.                     }
  1677.                 }
  1678.                
  1679.                 if (isset($_POST['product-23'])) {
  1680.                     if ($topic == null) {
  1681.                         $topic = "product-23";
  1682.                     }
  1683.                     else {
  1684.                         $topic = $topic . " ; product-23";
  1685.                     }
  1686.                 }
  1687.                
  1688.                 if (isset($_POST['product-24'])) {
  1689.                     if ($topic == null) {
  1690.                         $topic = "product-24";
  1691.                     }
  1692.                     else {
  1693.                         $topic = $topic . " ; product-24";
  1694.                     }
  1695.                 }
  1696.                
  1697.                 if (isset($_POST['product-25'])) {
  1698.                     if ($topic == null) {
  1699.                         $topic = "product-25";
  1700.                     }
  1701.                     else {
  1702.                         $topic = $topic . " ; product-25";
  1703.                     }
  1704.                 }
  1705.                
  1706.                 if (isset($_POST['product-26'])) {
  1707.                     if ($topic == null) {
  1708.                         $topic = "product-26";
  1709.                     }
  1710.                     else {
  1711.                         $topic = $topic . " ; product-26";
  1712.                     }
  1713.                 }
  1714.                
  1715.                 if (isset($_POST['product-27'])) {
  1716.                     if ($topic == null) {
  1717.                         $topic = "product-27";
  1718.                     }
  1719.                     else {
  1720.                         $topic = $topic . " ; product-27";
  1721.                     }
  1722.                 }
  1723.                
  1724.                 if (isset($_POST['product-28'])) {
  1725.                     if ($topic == null) {
  1726.                         $topic = "product-28";
  1727.                     }
  1728.                     else {
  1729.                         $topic = $topic . " ; product-28";
  1730.                     }
  1731.                 }
  1732.                
  1733.                 if (isset($_POST['product-29'])) {
  1734.                     if ($topic == null) {
  1735.                         $topic = "product-29";
  1736.                     }
  1737.                     else {
  1738.                         $topic = $topic . " ; product-29";
  1739.                     }
  1740.                 }
  1741.                
  1742.                 if (isset($_POST['product-30'])) {
  1743.                     if ($topic == null) {
  1744.                         $topic = "product-30";
  1745.                     }
  1746.                     else {
  1747.                         $topic = $topic . " ; product-30";
  1748.                     }
  1749.                 }
  1750.                
  1751.                 if (isset($_POST['product-31'])) {
  1752.                     if ($topic == null) {
  1753.                         $topic = "product-31";
  1754.                     }
  1755.                     else {
  1756.                         $topic = $topic . " ; product-31";
  1757.                     }
  1758.                 }
  1759.                
  1760.                 if (isset($_POST['product-32'])) {
  1761.                     if ($topic == null) {
  1762.                         $topic = "product-32";
  1763.                     }
  1764.                     else {
  1765.                         $topic = $topic . " ; product-32";
  1766.                     }
  1767.                 }
  1768.                
  1769.                 if (isset($_POST['product-33'])) {
  1770.                     if ($topic == null) {
  1771.                         $topic = "product-33";
  1772.                     }
  1773.                     else {
  1774.                         $topic = $topic . " ; product-33";
  1775.                     }
  1776.                 }
  1777.                
  1778.                 if (isset($_POST['product-34'])) {
  1779.                     if ($topic == null) {
  1780.                         $topic = "product-34";
  1781.                     }
  1782.                     else {
  1783.                         $topic = $topic . " ; product-34";
  1784.                     }
  1785.                 }
  1786.                
  1787.                 if (isset($_POST['product-35'])) {
  1788.                     if ($topic == null) {
  1789.                         $topic = "product-35";
  1790.                     }
  1791.                     else {
  1792.                         $topic = $topic . " ; product-35";
  1793.                     }
  1794.                 }
  1795.                
  1796.                 if (isset($_POST['product-36'])) {
  1797.                     if ($topic == null) {
  1798.                         $topic = "product-36";
  1799.                     }
  1800.                     else {
  1801.                         $topic = $topic . " ; product-36";
  1802.                     }
  1803.                 }
  1804.                
  1805.                 if (isset($_POST['product-37'])) {
  1806.                     if ($topic == null) {
  1807.                         $topic = "product-37";
  1808.                     }
  1809.                     else {
  1810.                         $topic = $topic . " ; product-37";
  1811.                     }
  1812.                 }
  1813.                
  1814.                 if (isset($_POST['product-38'])) {
  1815.                     if ($topic == null) {
  1816.                         $topic = "product-38";
  1817.                     }
  1818.                     else {
  1819.                         $topic = $topic . " ; product-38";
  1820.                     }
  1821.                 }
  1822.                
  1823.                 if (isset($_POST['product-39'])) {
  1824.                     if ($topic == null) {
  1825.                         $topic = "product-39";
  1826.                     }
  1827.                     else {
  1828.                         $topic = $topic . " ; product-39";
  1829.                     }
  1830.                 }
  1831.                
  1832.                 if (isset($_POST['product-40'])) {
  1833.                     if ($topic == null) {
  1834.                         $topic = "product-40";
  1835.                     }
  1836.                     else {
  1837.                         $topic = $topic . " ; product-40";
  1838.                     }
  1839.                 }
  1840.             }
  1841.            
  1842.             //Product Category 6
  1843.            
  1844.             if(isset($_POST['submit-enquiry6'])) {
  1845.                 if (isset($_POST['product-1'])) {
  1846.                     $topic = $topic . $_POST['product-1'];
  1847.                 }
  1848.        
  1849.                 if (isset($_POST['product-2'])) {
  1850.                     if ($topic == null) {
  1851.                         $topic = "product-2";
  1852.                     }
  1853.                     else {
  1854.                         $topic = $topic . " ; product-2";
  1855.                     }
  1856.                 }
  1857.        
  1858.                 if (isset($_POST['product-3'])) {
  1859.                     if ($topic == null) {
  1860.                         $topic = "product-3";
  1861.                     }
  1862.                     else {
  1863.                         $topic = $topic . " ; product-3";
  1864.                     }
  1865.                 }
  1866.        
  1867.                 if (isset($_POST['product-4'])) {
  1868.                     if ($topic == null) {
  1869.                         $topic = "product-4";
  1870.                     }
  1871.                     else {
  1872.                         $topic = $topic . " ; product-4";
  1873.                     }
  1874.                 }
  1875.        
  1876.                 if (isset($_POST['product-5'])) {
  1877.                     if ($topic == null) {
  1878.                         $topic = "product-5";
  1879.                     }
  1880.                     else {
  1881.                         $topic = $topic . " ; product-5";
  1882.                     }
  1883.                 }
  1884.        
  1885.                 if (isset($_POST['product-6'])) {
  1886.                     if ($topic == null) {
  1887.                         $topic = "product-6";
  1888.                     }
  1889.                     else {
  1890.                         $topic = $topic . " ; product-6";
  1891.                     }
  1892.                 }
  1893.        
  1894.                 if (isset($_POST['product-7'])) {
  1895.                     if ($topic == null) {
  1896.                         $topic = "product-7";
  1897.                     }
  1898.                     else {
  1899.                         $topic = $topic . " ; product-7";
  1900.                     }
  1901.                 }
  1902.        
  1903.                 if (isset($_POST['product-8'])) {
  1904.                     if ($topic == null) {
  1905.                         $topic = "product-8";
  1906.                     }
  1907.                     else {
  1908.                         $topic = $topic . " ; product-8";
  1909.                     }
  1910.                 }
  1911.        
  1912.                 if (isset($_POST['product-9'])) {
  1913.                     if ($topic == null) {
  1914.                         $topic = "product-9";
  1915.                     }
  1916.                     else {
  1917.                         $topic = $topic . " ; product-9";
  1918.                     }
  1919.                 }
  1920.        
  1921.                 if (isset($_POST['product-10'])) {
  1922.                     if ($topic == null) {
  1923.                         $topic = "product-10";
  1924.                     }
  1925.                     else {
  1926.                         $topic = $topic . " ; product-10";
  1927.                     }
  1928.                 }
  1929.        
  1930.                 if (isset($_POST['product-11'])) {
  1931.                     if ($topic == null) {
  1932.                         $topic = "product-11";
  1933.                     }
  1934.                     else {
  1935.                         $topic = $topic . " ; product-11";
  1936.                     }
  1937.                 }
  1938.        
  1939.                 if (isset($_POST['product-12'])) {
  1940.                     if ($topic == null) {
  1941.                         $topic = "product-12";
  1942.                     }
  1943.                     else {
  1944.                         $topic = $topic . " ; product-12";
  1945.                     }
  1946.                 }
  1947.        
  1948.                 if (isset($_POST['product-13'])) {
  1949.                     if ($topic == null) {
  1950.                         $topic = "product-13";
  1951.                     }
  1952.                     else {
  1953.                         $topic = $topic . " ; product-13";
  1954.                     }
  1955.                 }
  1956.        
  1957.                 if (isset($_POST['product-14'])) {
  1958.                     if ($topic == null) {
  1959.                         $topic = "product-14";
  1960.                     }
  1961.                     else {
  1962.                         $topic = $topic . " ; product-14";
  1963.                     }
  1964.                 }
  1965.        
  1966.                 if (isset($_POST['product-15'])) {
  1967.                     if ($topic == null) {
  1968.                         $topic = "product-15";
  1969.                     }
  1970.                     else {
  1971.                         $topic = $topic . " ; product-15";
  1972.                     }
  1973.                 }
  1974.        
  1975.                 if (isset($_POST['product-16'])) {
  1976.                     if ($topic == null) {
  1977.                         $topic = "product-16";
  1978.                     }
  1979.                     else {
  1980.                         $topic = $topic . " ; product-16";
  1981.                     }
  1982.                 }
  1983.        
  1984.                 if (isset($_POST['product-17'])) {
  1985.                     if ($topic == null) {
  1986.                         $topic = "product-17";
  1987.                     }
  1988.                     else {
  1989.                         $topic = $topic . " ; product-17";
  1990.                     }
  1991.                 }
  1992.        
  1993.                 if (isset($_POST['product-18'])) {
  1994.                     if ($topic == null) {
  1995.                         $topic = "product-18";
  1996.                     }
  1997.                     else {
  1998.                         $topic = $topic . " ; product-18";
  1999.                     }
  2000.                 }
  2001.        
  2002.                 if (isset($_POST['product-19'])) {
  2003.                     if ($topic == null) {
  2004.                         $topic = "product-19";
  2005.                     }
  2006.                     else {
  2007.                         $topic = $topic . " ; product-19";
  2008.                     }
  2009.                 }
  2010.        
  2011.                 if (isset($_POST['product-20'])) {
  2012.                     if ($topic == null) {
  2013.                         $topic = "product-20";
  2014.                     }
  2015.                     else {
  2016.                         $topic = $topic . " ; product-20";
  2017.                     }
  2018.                 }
  2019.                
  2020.                 if (isset($_POST['product-21'])) {
  2021.                     if ($topic == null) {
  2022.                         $topic = "product-21";
  2023.                     }
  2024.                     else {
  2025.                         $topic = $topic . " ; product-21";
  2026.                     }
  2027.                 }
  2028.                
  2029.                 if (isset($_POST['product-22'])) {
  2030.                     if ($topic == null) {
  2031.                         $topic = "product-22";
  2032.                     }
  2033.                     else {
  2034.                         $topic = $topic . " ; product-22";
  2035.                     }
  2036.                 }
  2037.                
  2038.                 if (isset($_POST['product-23'])) {
  2039.                     if ($topic == null) {
  2040.                         $topic = "product-23";
  2041.                     }
  2042.                     else {
  2043.                         $topic = $topic . " ; product-23";
  2044.                     }
  2045.                 }
  2046.                
  2047.                 if (isset($_POST['product-24'])) {
  2048.                     if ($topic == null) {
  2049.                         $topic = "product-24";
  2050.                     }
  2051.                     else {
  2052.                         $topic = $topic . " ; product-24";
  2053.                     }
  2054.                 }
  2055.                
  2056.                 if (isset($_POST['product-25'])) {
  2057.                     if ($topic == null) {
  2058.                         $topic = "product-25";
  2059.                     }
  2060.                     else {
  2061.                         $topic = $topic . " ; product-25";
  2062.                     }
  2063.                 }
  2064.                
  2065.                 if (isset($_POST['product-26'])) {
  2066.                     if ($topic == null) {
  2067.                         $topic = "product-26";
  2068.                     }
  2069.                     else {
  2070.                         $topic = $topic . " ; product-26";
  2071.                     }
  2072.                 }
  2073.                
  2074.                 if (isset($_POST['product-27'])) {
  2075.                     if ($topic == null) {
  2076.                         $topic = "product-27";
  2077.                     }
  2078.                     else {
  2079.                         $topic = $topic . " ; product-27";
  2080.                     }
  2081.                 }
  2082.                
  2083.                 if (isset($_POST['product-28'])) {
  2084.                     if ($topic == null) {
  2085.                         $topic = "product-28";
  2086.                     }
  2087.                     else {
  2088.                         $topic = $topic . " ; product-28";
  2089.                     }
  2090.                 }
  2091.                
  2092.                 if (isset($_POST['product-29'])) {
  2093.                     if ($topic == null) {
  2094.                         $topic = "product-29";
  2095.                     }
  2096.                     else {
  2097.                         $topic = $topic . " ; product-29";
  2098.                     }
  2099.                 }
  2100.                
  2101.                 if (isset($_POST['product-30'])) {
  2102.                     if ($topic == null) {
  2103.                         $topic = "product-30";
  2104.                     }
  2105.                     else {
  2106.                         $topic = $topic . " ; product-30";
  2107.                     }
  2108.                 }
  2109.                
  2110.                 if (isset($_POST['product-31'])) {
  2111.                     if ($topic == null) {
  2112.                         $topic = "product-31";
  2113.                     }
  2114.                     else {
  2115.                         $topic = $topic . " ; product-31";
  2116.                     }
  2117.                 }
  2118.                
  2119.                 if (isset($_POST['product-32'])) {
  2120.                     if ($topic == null) {
  2121.                         $topic = "product-32";
  2122.                     }
  2123.                     else {
  2124.                         $topic = $topic . " ; product-32";
  2125.                     }
  2126.                 }
  2127.                
  2128.                 if (isset($_POST['product-33'])) {
  2129.                     if ($topic == null) {
  2130.                         $topic = "product-33";
  2131.                     }
  2132.                     else {
  2133.                         $topic = $topic . " ; product-33";
  2134.                     }
  2135.                 }
  2136.                
  2137.                 if (isset($_POST['product-34'])) {
  2138.                     if ($topic == null) {
  2139.                         $topic = "product-34";
  2140.                     }
  2141.                     else {
  2142.                         $topic = $topic . " ; product-34";
  2143.                     }
  2144.                 }
  2145.                
  2146.                 if (isset($_POST['product-35'])) {
  2147.                     if ($topic == null) {
  2148.                         $topic = "product-35";
  2149.                     }
  2150.                     else {
  2151.                         $topic = $topic . " ; product-35";
  2152.                     }
  2153.                 }
  2154.                
  2155.                 if (isset($_POST['product-36'])) {
  2156.                     if ($topic == null) {
  2157.                         $topic = "product-36";
  2158.                     }
  2159.                     else {
  2160.                         $topic = $topic . " ; product-36";
  2161.                     }
  2162.                 }
  2163.                
  2164.                 if (isset($_POST['product-37'])) {
  2165.                     if ($topic == null) {
  2166.                         $topic = "product-37";
  2167.                     }
  2168.                     else {
  2169.                         $topic = $topic . " ; product-37";
  2170.                     }
  2171.                 }
  2172.                
  2173.                 if (isset($_POST['product-38'])) {
  2174.                     if ($topic == null) {
  2175.                         $topic = "product-38";
  2176.                     }
  2177.                     else {
  2178.                         $topic = $topic . " ; product-38";
  2179.                     }
  2180.                 }
  2181.                
  2182.                 if (isset($_POST['product-39'])) {
  2183.                     if ($topic == null) {
  2184.                         $topic = "product-39";
  2185.                     }
  2186.                     else {
  2187.                         $topic = $topic . " ; product-39";
  2188.                     }
  2189.                 }
  2190.                
  2191.                 if (isset($_POST['product-40'])) {
  2192.                     if ($topic == null) {
  2193.                         $topic = "product-40";
  2194.                     }
  2195.                     else {
  2196.                         $topic = $topic . " ; product-40";
  2197.                     }
  2198.                 }
  2199.             }
  2200.         ?>
  2201.         <div id="product-form">
  2202.             <form action="product-enquire.php" method="POST">
  2203.                 Name:<br /><input type="text" name="contact_name"><br /><br />
  2204.                 Email address:<br /><input type="text" name="contact_email"><br /><br />
  2205.                 Phone number:<br /><input type="text" name="contact_number"><br /><br />
  2206.                 Address:<br />
  2207.                 <textarea name="contact_address" rows="2" cols="30"></textarea><br /><br />
  2208.                 Product Name(s):<br />
  2209.                 <textarea name="contact_product" rows="2" cols="30"><?php echo $topic; ?></textarea><br /><br />
  2210.                 Message:<br />
  2211.                 <textarea name="contact_text" rows="6" cols="30"></textarea><br /><br />
  2212.                 <input type="submit" value="Send">
  2213.             </form>
  2214.         </div>
  2215.     </div>
  2216. </body>
  2217. </html>
Advertisement
Add Comment
Please, Sign In to add comment