$nMax = sizeof($arrMySplit); for ($nIndex = 3; $nIndex < $nMax; $nIndex = $nIndex + 2) { $strValue .= $arrMySplit[$nIndex] . '---'; } $keyId = rand(1, 150); } else { // we have to use the standard value $strValue = $arrValues[$arrRow["nFieldId"] . "_" . $arrSlot["nID"]]["strFieldValue"]; $keyId = rand(1, 150); } } else { $strValue = $arrRow['strStandardValue']; } $nInputfieldID = $arrRow["nFieldId"]; $bIsEnabled = 0; $strEcho = $objMyCirculation->getCheckboxGroup($nInputfieldID, $strValue, $bIsEnabled, $keyId, $nRunningCounter); echo $strEcho; } elseif ($arrRow["nType"] == 8) { if ($arrValues[$arrRow["nFieldId"] . "_" . $arrSlot["nID"]]["strFieldValue"] != '') { $strValue = $arrValues[$arrRow["nFieldId"] . "_" . $arrSlot["nID"]]["strFieldValue"]; $arrMySplit = split('---', $strValue); if ($arrMySplit[1] > 1) { // edited field values $strValue = ''; $nMax = sizeof($arrMySplit); for ($nIndex = 3; $nIndex < $nMax; $nIndex = $nIndex + 2) { $strValue .= $arrMySplit[$nIndex] . '---'; } $keyId = rand(1, 150); } else { // we have to use the standard value