nevillekwa 0 Newbie Poster

Hi
Need your help, if you can. I have html and php below for my school project. I am trying make sticky form checkbox.

My Html code:

<div style="clear:both;"><br /></div>
                     <p>Which Nikon Cameras do you own?</p>
                     <input type="checkbox" name="products[]" value="D5000" />D5000&nbsp;
                     <input type="checkbox" name="products[]" value="D3000" />D3000&nbsp;
                     <input type="checkbox" name="products[]" value="D700" />D700&nbsp;
                     <input type="checkbox" name="products[]" value="D90" />D90&nbsp;<br />
</div>

My php code:

<?php

// validating the check boxes

$products = '';
if (isset($_POST['products'])) {
  if ($_POST['products'] == "D5000") {
     echo $products;
   }
    if ($_POST['products'] =="D3000") {
       echo $products;
    }
       if ($_POST['products'] =="D700") {
           echo $products;
       }
          if ($_POST['products'] =="D90") {
                   echo $products;
          }
            if ($_POST['products'] =="D80") {
                   echo $products;
            }
               if ($_POST['products'] =="D70") {
                     echo $products;
               }
                  if ($_POST ['products'] =="D60") {
                      echo $products;
                   }
                     if ($_POST ['products'] =="D40") {
                        echo $products;
                   }

 }
?>

<pre>