title: Insert into database from array of checkboxes
body: <p>i have a form that contains checkboxes. I've named the checkboxes as stream[], so it's an array of checkboxes.</p>
  
  <p>I would like to insert the checkbox values if it is checked.</p>
  
  <pre><code>&lt;p&gt;&lt;input type="checkbox" name="stream[]" value="survey" id="svy"/&gt;Survey&lt;/p&gt;
                  &lt;p&gt;&lt;input type="checkbox" name="stream[]" value="write_review" id="wr"&gt;Write Review&lt;/p&gt;
                  &lt;p&gt;&lt;input type="checkbox" name="stream[]" value="fb post" id="fbp"&gt;Facebook Post&lt;/p&gt;.
  </code></pre>
  
  <p>How do i do that?</p>