title: Running more then one Else If statement on a page PHP
body: <p>I was wondering what the best way to run two(or more) else if statements on one PHP page. This is part of a form where its looking for a ticket type and how many days. I need to run two of these statement on one page and I doesn't seem to work because once it hit a true statement it stops. How can I get this to work?</p>
  
  <pre><code>&lt;?php
      if($ticket_type=='Child (5 &amp; Under)'){
       echo "
       &lt;select name=\"ticket_type[]\"&gt;
         &lt;option value=\"\"&gt;Select one...&lt;/option&gt;
         &lt;option selected=\"selected\"&gt;Child (5 &amp;amp; Under)&lt;/option&gt;
         &lt;option&gt;Child (6 - 12)&lt;/option&gt;
         &lt;option&gt;Teen (13 - 17)&lt;/option&gt;
       &lt;/select&gt;";
      }else if($ticket_type=='Child (6 - 12)'){
       echo "
       &lt;select name=\"ticket_type[]\"&gt;
         &lt;option value=\"\"&gt;Select one...&lt;/option&gt;
         &lt;option&gt;Child (5 &amp;amp; Under)&lt;/option&gt;
         &lt;option selected=\"selected\"&gt;Child (6 - 12)&lt;/option&gt;
         &lt;option&gt;Teen (13 - 17)&lt;/option&gt;
       &lt;/select&gt;";
      }else if($ticket_type=='Teen (13 - 17)'){
       echo "
       &lt;select name=\"ticket_type[]\"&gt;
         &lt;option value=\"\"&gt;Select one...&lt;/option&gt;
         &lt;option&gt;Child (5 &amp;amp; Under)&lt;/option&gt;
         &lt;option&gt;Child (6 - 12)&lt;/option&gt;
         &lt;option selected=\"selected\"&gt;Teen (13 - 17)&lt;/option&gt;
       &lt;/select&gt;";
      }else{
       echo "
       &lt;select name=\"ticket_type[]\"&gt;
         &lt;option value=\"\"&gt;Select one...&lt;/option&gt;
         &lt;option&gt;Child (5 &amp;amp; Under)&lt;/option&gt;
         &lt;option&gt;Child (6 - 12)&lt;/option&gt;
         &lt;option&gt;Teen (13 - 17)&lt;/option&gt;
       &lt;/select&gt;";
  
  
    }?&gt;
  
  
  
  
  &lt;?php
          if($days=='1 Day'){
           echo "
           &lt;select name=\"ticket_type[]\"&gt;
             &lt;option value=""&gt;Select one...&lt;/option&gt;
             &lt;option selected=\"selected\"&gt;1 Day&lt;/option&gt;
             &lt;option&gt;2 Days&lt;/option&gt;
             &lt;option&gt;3 out of 4 Days&lt;/option&gt;
           &lt;/select&gt;";
          }else if($days=='2 Days'){
           echo "
           &lt;select name=\"ticket_type[]\"&gt;
             &lt;option value=""&gt;Select one...&lt;/option&gt;
             &lt;option&gt;1 Day&lt;/option&gt;
             &lt;option selected=\"selected\"&gt;2 Days&lt;/option&gt;
             &lt;option&gt;3 out of 4 Days&lt;/option&gt;
           &lt;/select&gt;";
          }else if($days=='3 out of 4 Days'){
           echo "
           &lt;select name=\"ticket_type[]\"&gt;
             &lt;option value=""&gt;Select one...&lt;/option&gt;
             &lt;option&gt;1 Day&lt;/option&gt;
             &lt;option&gt;2 Days&lt;/option&gt;
             &lt;option selected=\"selected\"&gt;3 out of 4 Days&lt;/option&gt;
           &lt;/select&gt;";
          }else{
           echo "
           &lt;select name=\"days[]\"&gt;
             &lt;option value=""&gt;Select one...&lt;/option&gt;
             &lt;option&gt;1 Day&lt;/option&gt;
             &lt;option&gt;2 Days&lt;/option&gt;
             &lt;option&gt;3 out of 4 Days&lt;/option&gt;
           &lt;/select&gt;";
          }?&gt;
  </code></pre>