Well..
I'm very sorry to say but I can't see your problem. What you describe is logic and clear to me, but I'm not sure what your problem is exactly?
Which part doesn't work? Putting checkbox information in a database is very simple, create (for instance) a row called "article_yn" and make it varchar(1). Put in "y" or put in "n".
If someone checks a checkbox, the value is set to "on" e.g.
<input type="checkbox" name="test" />
If someone checks it, and submits the form, on the next page you can retrieve the value for $test which is "on".
So you can say:
if ( $test ) {
$field_yn = "j";
} else {
$field_yn = "n";
}
Now, if you would retrieve field_yn from a database you could use:
<input type="checkbox" <? echo $check ?> name="test" />
Before this line you use:
if ( $field_yn == "j" ) {
$check = "checked";
} else {
$check = "";
}
That's just the basics for checkboxes, perhaps not so complex as it can be, e.g. you could store your checkbox in your database as "tinyint" and simply put in 1 or 0 (1 = true, 0 = false)
But perhaps that's not what you wanted to know, so if it's not, please be more clear ;-)