$countErrors++; $dispError .= " <b>·</b> You may not enter a blank category name.<br>"; } // Check Section if (!is_numeric($_POST['section']) || $_POST['section'] >= $menuXML->info->section->count() || $_POST['section'] < 0) { $countErrors++; $dispError .= " <b>·</b> You selected an invalid menu section.<br>"; } // Check Header Type if (!in_array($_POST['headertype'], $arrCheckType)) { $countErrors++; $dispError .= " <b>·</b> You selected an invalid header type.<br>"; } // Check Display Order $menuCatObj->setCategoryKeyValue($_POST['section']); $intNewOrderNum = $menuCatObj->validateOrder($_POST['displayorder'], $_POST['beforeafter']); if ($intNewOrderNum === false) { $countErrors++; $dispError .= " <b>·</b> You selected an invalid header type.<br>"; } if ($_POST['accesstype'] != "0" && $_POST['accesstype'] != "1" && $_POST['accesstype'] != "2") { $countErrors++; $dispError .= " <b>·</b> You selected an invalid access type.<br>"; } if ($_POST['hidecategory'] != "1") { $_POST['hidecategory'] = 0; } if ($_POST['headertype'] == "customcode") { $headerImageURL = $_POST['headercustomcode']; } elseif ($_POST['headertype'] == "customformat") { $headerImageURL = $_POST['wysiwygHTML'];