title: Add Check Box to each product and use the selected Check boxes values on another page
body: <p>The product list will be populated from MySql Database using PHP code and is having a check box for each product.</p>
  
  <p>On that page, whenever a check box is clicked, I need that product to be highlighted and store its value to some other array type variable to pass that value to another page.</p>
  
  <p>Code for product list creation:</p>
  
  <pre><code>&lt;?php
  $cnt=0;
  $rslt = mysqli_query($conn,"SELECT Icode,Name,Size,Style FROM productinfo");
  
  if(!$rslt){
      die(mysqli_error($conn));
  }else{
      echo "&lt;table width='100%'&gt;";
      while($row = mysqli_fetch_assoc($rslt)){
          if($cnt==0){
              echo "&lt;tr&gt;";
          }
          echo "&lt;td width='30%'&gt;
            &lt;div class='card'&gt;
              &lt;img src='upload/"."download.jpg"."' alt='Avatar' style='width:100px' &gt;
              &lt;div class='container'&gt;
                &lt;h4&gt;&lt;b&gt;".$row['Name']."&amp;nbsp;&amp;nbsp;&lt;input type='checkbox' name=".$row['Icode']." value=".$row['Icode']." onclick=' echo return OptionsSelected(this)'/&gt; &lt;/b&gt;&lt;/h4&gt; 
                &lt;p&gt;".$row['Size']."&lt;/p&gt; 
                &lt;p&gt;".$row['Icode']."&lt;/p&gt; 
              &lt;/div&gt;";
              ?&gt;
  
      &lt;!--  &lt;button role="button" data-toggle="modal" data-id="&lt;?php print $row['Icode']?&gt;" onclick="document.getElementById('id01').style.display='block'" style="width:auto;"&gt;Inquiry&lt;/button&gt;
            &lt;/div&gt;
      &lt;?php
      echo "&lt;/td&gt;";
      if($cnt==2){
        $cnt=0;
        echo "&lt;/tr&gt;";
      }
      else
        $cnt = $cnt + 1;
    }
  }
  echo "&lt;/table&gt;";
  ?&gt;
  </code></pre>