title: How to insert "Checkboxes" values to SQL
body: <p>well i'm confused on how to insert "Checkboxes" values to SQL
  here's my code </p>
  
  <pre><code>$form['last'] = array(
  '#type' =&gt; 'checkboxes',
  '#title' =&gt; "Just title",
  '#options' =&gt; array(
  'opt1' =&gt; "Option 1",
  'opt2' =&gt; "Option 2",
  ),
  </code></pre>
  
  <p>as you can see my form consist of two checkbox, so how to get the value and insert to sql language. anyone can give an example or hint</p>
  
  <p>here the method that i'm used to get the value (i know its very wrong)</p>
  
  <pre><code>function fasil_form_submit($form,&amp;$form_state){
    global $user;
    $entry = array(
    'uid'     =&gt; $user-&gt;uid,
    'test1'   =&gt; $form_state['values']['1first'],
    $jenis = 'aa_test';
    $return = insert_form($entry,$jenis);
  }
  </code></pre>
  
  <p>ps : sorry for my bad english</p>