$t_t=explode(",",$db_row[strTarget]); foreach($t_t as $key=>$value) { ${'ch_k_v_'.$value}="checked"; }
foreach($Ins_News_db_lib->school_arr as $key=>$value) {
$c_val=${'ch_k_v_'.$key};
echo"<input type=checkbox name=strTarget_$key value='$key' $c_val >$value "; }
=============================================
foreach($Ins_News_db_lib->school_arr as $key=>$value) {
if(${'strTarget_'.$key}) { $strTarget .=$key.","; } }
|