// blah $lang = file($detail['content'] .".txt"); foreach ($lang as $langDetail) { $langDetail = trim($langDetail); $content .= '
'.$langDetail .'
'; } // blah foreach($_POST as $postName => $postItem) { if(isset($_POST['strLen'])) { if(substr($postName, -$_POST['strLen']) == 'chkbox_') { $ckbox[substr($postName, -$_POST['strLen'])] = $postItem; } unset($_POST['strLen']); } if ( $postName == 'headline' ){ $postItem = strip_tags($postItem); } if ( $postName != "username" ){ $dbCount++; if ( $dbCount != '1' ){ $dbContent .= ', '; } dbContent .= "`$postName` = '$postItem'"; } } mysql_query("UPDATE `user` SET $dbContent WHERE `user` = '$VAR[4]'") or die(mysql_error()); // no matter how hard i try.. the checkbox always gets sent as box=value&box=value and NOT as box=[value,value,value]