title: get array of checkbox values from post
body: <p>Here is my code</p>
  
  <pre><code>&lt;?php
  if(isset($_POST['type'])){
      if (is_array($_POST['type'])) {
          echo "IS ARRAY!!!!!!!!";
      } 
      else {
          echo "IS NOT ARRAY!!!";
      }
  }
  ?&gt;
  </code></pre>
  
  <p>and..</p>
  
  <pre><code>&lt;div id="player" class="group"&gt;
      &lt;form action=&lt;?php echo $_SERVER['SCRIPT_NAME']; ?&gt; id="playerform" method="post"&gt;
  &lt;?php
  for($j = 0; $j &lt; sizeof($_SESSION['playercharacter']-&gt;defendAgainst); $j++) {    
  ?&gt;
  &lt;input type="checkbox" name="type[]" value=&lt;?php echo $_SESSION['playercharacter']-&gt; 
  defendAgainst[$j]; ?&gt; /&gt;
  &lt;?php    
  }        
  ?&gt;            
      &lt;/form&gt;    
  &lt;/div&gt;
  </code></pre>
  
  <p>Thing is....$_POST['type'] is just a single value rather than an array.. How do i get ALL checked values? Thanks for your time...</p>