'', 'locname' => '', 'loccode' => '', 'locinfo' => '' ]; $editing = false; if (!is_empty($VARS['id'])) { if ($database->has('locations', ['locid' => $VARS['id']])) { $editing = true; $locdata = $database->select( 'locations', [ 'locid', 'locname', 'loccode', 'locinfo' ], [ 'locid' => $VARS['id'] ])[0]; } else { // cat id is invalid, redirect to a page that won't cause an error when pressing Save header('Location: app.php?page=editloc'); } } ?>

"" . htmlspecialchars($locdata['locname']) . ""]); ?>

" required="required" value="" />