Includi questa funzione sulla tua pagina:
Poi su ogni checkbox:Codice PHP:
function CHECKED($firstVal, $secondVal){
if($firstVal == $secondVal){
$result = " checked=\"checked\"";
return $result;
}
}
Codice PHP:
<input type='checkbox' name='email_vis' value='$email_vis' <?php print CHECKED(valore_della_checkbox, valore_salvato_nel db); ?>></td>