set get value function node question

I have created a custom form block in my html page that displays 9 check-boxes, these relate to 9 fields in my mysql database.

I am unsure how to write the set_value:function(node,value,ev) and get_value:function(node,ev) code so that when these check-boxes are clicked they populate the database with 1, and unchecked 0

Is it possible to populate a text value in the database if they are checked?

I am working from the sample /02_customization/05_custom_editor.html but not getting very far.

I also have them in my
$scheduler->render_table(“events”,“event_id”,“start_date,end_date,event_name, OrderStatus,rec_type,event_pid,event_length,EventSkill1,EventSkill2,EventSkill3,EventSkill4,EventSkill5,EventSkill6,EventSkill7,EventSkill8,EventSkill9”);

[code]set_value:function(node,value,ev){
ch = node.getElementsByTagName(“input”);
ch[0].checked = ev.EventSkill1 == 1;
ch[1].checked = ev.EventSkill2 == 1;

get_value:function(node,ev){
ch = node.getElementsByTagName(“input”);
ev.EventSkill1 = ch[0].checked ? 1 : 0;
ev.EventSkill2 = ch[1].checked ? 1 : 0;
…[/code]

Is it possible to populate a text value in the database if they are checked?
Yep, you can set any propery of ev object to any value - and it will send to server side. If field with same name was included in render_ command - it will be saved into db automatically.