title: how to add checkbox in select option in php?
body: <p>I make a php page i want to attach check box with list box option value how i attached checkbox,here is my code:</p>
  
  <pre><code>&lt;select name="recepients[]" multiple size="10" multiple="multiple" &gt;
       &lt;?
          //echo $eventid=$_POST['events'];
          $count=count($_POST['events']);
          for($i=0; $i&lt;$count; $i++){
              $select="select b.first_name,b.last_name from buyers b,registrations r where b.buyer_id=r.buyer_id and r.event_id='".$_POST['events'][$i]."' group by r.buyer_id";
              $res = $GLOBALS ['mysqli']-&gt;query ($select) or die ($GLOBALS ['mysqli']-&gt;error . __LINE__);
              if ($res-&gt;num_rows &gt; 0)
              {           
                  while($row = $res-&gt;fetch_assoc ())
                  {
                  ?&gt;
                  &lt;input type="checkbox" name="receptionts[]" checked="checked"/&gt; 
                  &lt;option value="&lt;?=$row['first_name']?&gt;"&gt;&lt;?=$row['last_name']?&gt;&lt;/option&gt;
                  &lt;?
                  }
              }
          }
          ?&gt;
   &lt;/select&gt;
  </code></pre>