title: Form multiple choice options
body: <p>I've tried my best to try and figure this one out, and it might be quite basic for some, I've searched for solutions... I want this to be a straight forward fill out / email (I know how to do the email part) - unless it has to be database driven?</p>
  
  <p>Basically, I've got a 10 question quiz, multiple choice A B C D - however A B C could be correct.</p>
  
  <p>My html is (broke down)</p>
  
  <pre><code>&lt;input type="checkbox" name="question1[]" id="question1" value="A" /&gt;
  &lt;label for="question1"&gt;A) Do you like this &lt;/label&gt; 
  
  &lt;input type="checkbox" name="question1[]" id="question1" value="B" /&gt;
  &lt;label for="question1"&gt;A) Do you like this as well &lt;/label&gt;
  
  &lt;input type="checkbox" name="question1[]" id="question1" value="C" /&gt;
  &lt;label for="question1"&gt;A) Do you like this as well well &lt;/label&gt;
  
  &lt;input type="checkbox" name="question1[]" id="question1" value="D" /&gt;
  &lt;label for="question1"&gt;A) Do you like this as well well well &lt;/label&gt;
  </code></pre>
  
  <p>So, this 'posts' through to another php file and I can work through the array to show which answer has been ticked-</p>
  
  <pre><code>    $myresults = $_POST['question1'];
      if(empty($myresults))
      {
      echo("You didn't answer in this section.");
      }
      else{
      $N = count($myresults);
      echo "&lt;strong&gt;Section 1:&lt;/strong&gt; You selected $N answers: ";
      for($i=0; $i &lt; $N; $i++)
      {
      echo($myresults[$i] . " ");
      }
      }
  </code></pre>
  
  <p>So, sorry for waffling - basically, I just want to say A B C are correct - D is incorrect, add 1 to the score.</p>
  
  <p>I think I need to create an 'if' statement something like this?</p>
  
  <pre><code>    if (($myresults == 'A') &amp;&amp; ($myresults == 'B') &amp;&amp; (myresults == 'C'))
      {
      echo "something might have worked!";
      $mycount++;
      }
  </code></pre>
  
  <p>I think I got quite close at some point today, but by the time I tried various fixes, I could'nt get back to where I was :(</p>
  
  <p>But I am really unsure how to do this.</p>
  
  <p>Many thanks for any help</p>
  
  <p>Andy</p>