Eh muito simples, quero deixar salvo no Banco os checkboxs, quando forem selecionados!
Segue o cod no qual ACHO que deve estar perto de alguma solução!!
CREATE TABLE `teste` (
`campo` INT( 15 ) NOT NULL
) ENGINE = MYISAM ;
<form name=form action=teste.php method=post> <input type=checkbox name="serial[]" value="1"> Nota 1 <br> <input type=checkbox name="serial[]" value="2"> Nota 3 <br> <input type=checkbox name="serial[]" value="3"> Nota 5 <br> <input type=submit value=Salvar>
teste.php
for($i=1;$i<=3;$i++) { $serial[$i] = $_POST[$i]; echo "Serial: " .$serial[$i]. "<br>"; } $sql = "INSERT INTO `teste` ( `1` , `2` , `3` ) VALUES ('$serial[1]', '$serial[2]', '$serial[3]')"; echo "<br>$sql<br>"; $res = mysql_query($sql);