submit the value of check box in database

Posted by ritu on Stack Overflow See other posts from Stack Overflow or by ritu
Published on 2011-03-04T05:18:07Z Indexed on 2011/03/04 7:24 UTC
Read the original article Hit count: 251

Filed under:
|
<?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

© Stack Overflow or respective owner

Related posts about php

Related posts about php5