getting the values of hidden inputs to use them in a php mysql query

Please add method="post" to form like

    <form id="form1" method="post">
          <?php foreach($results as $key): ?>
              <?php echo $key->ID.$key->display_name.$key->mg_nobility; ?>
              <!-- Append the id to the end of this -->
              <input type="text" id='edit-value-<?php echo $key->ID ?>' value="" /> 
              <!-- Use the data attr instead -->
              <button data-rowid='<?php echo $key->ID ?>' class="edit_nov">Submit</button><br>
          <?php endforeach ?>
  <input type="hidden" name="del_id" id='row_del_id' value="">
  <input type="hidden" name="up_id" id='row_up_id' value="">
      </form>