fixErrors(); // drop post data header('HTTP/1.1 303 See Other'); header('Location: index.php'); if (!defined('TESTSUITE')) { exit; } } if (!$form_display->process(false)) { // handle form view and failed POST $form_display->display(true, true); } else { // check for form errors if ($form_display->hasErrors()) { // form has errors, show warning $separator = PMA_URL_getArgSeparator('html'); $page = filter_input(INPUT_GET, 'page'); $formset = filter_input(INPUT_GET, 'formset'); $formset = $formset ? "{$separator}formset=$formset" : ''; $id = filter_input(INPUT_GET, 'id', FILTER_VALIDATE_INT); if ($id === null && $page == 'servers') { // we've just added a new server, get it's id $id = $form_display->getConfigFile()->getServerCount(); } $id = $id ? "{$separator}id=$id" : ''; ?>
displayErrors() ?>