} break; } } // If current step, or some inputs are invalid, or no data has yet been displayed - prompt the step if ($step == STEP_ADDEDINFO || $hasErrors || !HasAnyAdditionalStepValueBeenPostedYet()) { // Do not show any info or success if this is "first show" if (HasAnyAdditionalStepValueBeenPostedYet()) { // Determine the box to show if ($hasErrors) { $page->InfoBox('The form has not been properly filled out!'); } else { $page->SuccessBox('Inputs are accepted, please continue to the next step'); } // Pop it out of the queue and insert at top $page->UpdateQueueAtIndex($msgBoxIndex, $page->PopQueue()); } // Close the form and offer next and previous like in any other steps $prev = GetPrevStep(STEP_ADDEDINFO); if ($prev) { $page->FormButton('Back', array('step' => $prev)); } $page->FormSubmit('Next'); $page->FormClose(); $page->ShowPage(STEP_ADDEDINFO); } else { $page->ClearHtmlQueue(); } } /* ===================================================[ DATABASE CONNECTION ]=================================================== */ if ($steps[STEP_DBCONNECT]['enabled']) {