submit the value of check box in database
<pre><code>&lt;?php 
    $dates = $day1 ;
    echo "&lt;p&gt;";
    for($i=0;$i&lt;count($dates);$i++) {
        if($i&gt;0 &amp;&amp; ($i%3==0)) { echo "&lt;/p&gt;&lt;p&gt;"; }
        echo "&lt;input type='checkbox' name='dates[".$dates."]' /&gt;&lt;label&gt;".$dates[$i]."&lt;/label&gt;";
    }
    echo "&lt;/p&gt;";
?&gt;
</code></pre>

<p>whan i use this output will be desire Ex</p>

<pre><code>1 2 3
4 5 6
</code></pre>

<p>but i want send his data in the databse but
only a array will be send into the database <code>$_post[dates</code>
so can any on tell me how can i send the data in the database </p>
