title: PHP - Determine if one more more options are selected
body: <p>I'm trying to use PHP to determine if one or more options are selected.</p>
  
  <p>I have this code that works for a singular item:</p>
  
  <pre><code>if (isset($_POST['option43'])) {
    if (isset($_POST['option41'])) {
      $sql .= " mysql string";
    } else {  
      $sql .= " my other sql string";
     }
  }
  </code></pre>
  
  <p>But when I try to add || to include another item, the PHP fails to load:</p>
  
  <pre><code>if (isset($_POST['option43'])) {
    if (isset($_POST['option41'] || isset($_POST['option42']))) {
      $sql .= " mysql string";
    } else {  
      $sql .= " my other sql string";
  }
  }
  </code></pre>
  
  <p>Can anyone help me understand how to make this work?</p>
  
  <p>Here is the HTML:
      </p>
  
  <pre><code>                            &lt;tr&gt;
                                  &lt;td&gt;&lt;input type="checkbox" name="option41" value="bm" /&gt;bm &lt;/td&gt;
                                  &lt;td&gt;&lt;input type="checkbox" name="option42" value="Tv" /&gt;tv &lt;/td&gt;
                              &lt;/tr&gt;
                              &lt;tr&gt;
                                  &lt;td&gt;&lt;input type="checkbox" name="option43" value="hp" /&gt;hp &lt;/td&gt;
                              &lt;/tr&gt;
  </code></pre>
  
  <p>Basically I'm trying to write:</p>
  
  <p>IF option 43 is checked, THIS is the sql
  but if option 41 or 42 is checked, THIS is the sql</p>
  
  <p>thanks</p>