# $return_to_url->set_get_variable('xml-file', $xml_db_page_manager->get_xml_file_name()); $return_to_url = new HTMLTags_URL(); $return_to_url->set_file('/'); foreach (array_keys($_GET) as $get_key) { $return_to_url->set_get_variable($get_key, $_GET[$get_key]); } $return_to_url->set_get_variable('type', 'html'); #print_r($return_to_url); exit; /* * Are we cancelling? */ # print_r($_GET); #exit; if (isset($_GET['cancel'])) { # echo "cancel set\n"; #exit; $svm->delete_matching('/^table-xml: /'); $return_to_url->unset_get_variable('cancel'); foreach (explode(' ', 'delete_all delete_id add_row edit_id') as $key) { 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'])) {