需要提交到后台处理
if (form.checkbox.[i].checked=ture)
    hiddenFrame.location = "changeSession.php?value="+i;
hiddenFrame是一个隐藏的IFRAME
----------------
changeSession.php
<?
  session_start();
  $_SESSION['array'] = $_GET['value'];