title: Getting checkbox values on submit
body: <p>I have 6 options, I want to get the checked values to store them in variable on second page. How do I go on doing that?<br/></p>
  
  <pre><code>&lt;form action="third.php" method="get"&gt;
      &lt;!-- Choices --&gt;
      Red     &lt;input type="checkbox" name="color[]" id="color" value="Red"&gt;
      Green   &lt;input type="checkbox" name="color[]" id="color" value="Green"&gt;
      Blue    &lt;input type="checkbox" name="color[]" id="color" value="Blue"&gt;
      Cyan    &lt;input type="checkbox" name="color[]" id="color" value="Cyan"&gt;
      Magenta &lt;input type="checkbox" name="color[]" id="color" value="Magenta"&gt;
      Yellow  &lt;input type="checkbox" name="color[]" id="color" value="Yellow"&gt;
      Black   &lt;input type="checkbox" name="color[]" id="color" value="Black"&gt;
      &lt;!-- Submit --&gt;
      &lt;input type="submit" value="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And <code>third.php</code> page :</p>
  
  <pre><code>$color = $_GET['color'];
  
  echo 'The color is '.$color;
  </code></pre>
  
  <p>If I remove <code>[]</code>, I get the color is on, when I do it like <code>color[]</code> I get a notice saying : </p>
  
  <blockquote>
    <p>Array to string conversion</p>
  </blockquote>
  
  <p>What I want is the value of checked, checkboxes so I can store it in variable.</p>