submit the value of check box in database
- by ritu
<?php
$dates = $day1 ;
echo "<p>";
for($i=0;$i<count($dates);$i++) {
if($i>0 && ($i%3==0)) { echo "</p><p>"; }
echo "<input type='checkbox' name='dates[".$dates."]' /><label>".$dates[$i]."</label>";
}
echo "</p>";
?>
whan i use this output will be desire Ex
1 2 3
4 5 6
but i want send his data in the databse but
only a array will be send into the database $_post[dates
so can any on telll me how can i send the data in the database