if ($return_to_url->is_get_variable_set($key)) { $return_to_url->unset_get_variable($key); } } } else { /* * Make alterations to the table. */ # echo "cancel not set.\n"; exit; try { /* * Add to the table. */ if (isset($_GET['add_row'])) { #print_r($_POST); exit; $id = $xml_db_page_manager->add($table, $_POST, $_FILES); $return_to_url->unset_get_variable('add_row'); $return_to_url->set_get_variable('last_added_id', $id); } /* * Update the table. */ if (isset($_GET['edit_id'])) { $xml_db_page_manager->update_by_id($table, $_GET['edit_id'], $_POST, $_FILES); $return_to_url->unset_get_variable('edit_id'); $return_to_url->set_get_variable('last_edited_id', $_GET['edit_id']); } /* * Delete rows from the database. */ if (isset($_GET['delete_id'])) {