title: Why does this update part of this plugin take me to the "nothing here" page?
body: <p>Below is my plugin.  Everything works except the update part.  It will show the little table with the existing values and when I click on the update button in that little table, it takes me to &quot;Nothing Here&quot; page, instead of calling the page again.</p>
  <p>The url doesn't update to the page url, it still has the parameter on the end of the url too.</p>
  <pre><code>&lt;?php
  /*
  Plugin Name: deano CRUD Operations
  Plugin URI: 
  Description: A simple plugin that allows you to perform CRUD operations on custom database table
  Version: 1.0.0
  Author: Dean-O
  Author URI: 
  License: GPL2
  */
  
  
  
  
  function deanocrud() {
    global $wpdb;
    //$table_name = $wpdb-&gt;prefix . 'books';
    $table_name = 'books';
  
    // get current user ID, with default value, if empty
    $current_user_id = get_current_user_id();
    error_log('current_user_id '.$current_user_id);
  
    if (isset($_POST['newsubmit'])) {
  
      error_log('newsubmit here');
      $wp_id = $_POST['wp_id'];
      $title = $_POST['title'];
      $author = $_POST['author'];
      $wpdb-&gt;query(&quot;INSERT INTO $table_name(wp_id,title,author) VALUES('$wp_id','$title','$author')&quot;);
      //echo &quot;&lt;script&gt;location.replace('admin.php?page=crud.php');&lt;/script&gt;&quot;;
      //wp_redirect( &quot;http://localhost/tadpolewp/deano-plugin-successful/&quot; );
      //wp_redirect( &quot;http://localhost/tadpolewp/deano-crud/&quot; );
          ?&gt;
      &lt;script type=&quot;text/javascript&quot;&gt;
        document.location.href=&quot;http://localhost/tadpolewp/deano-crud/&quot;;
    &lt;/script&gt;
    &lt;?php
      
    }
    if (isset($_POST['uptsubmit'])) {
      error_log('uptsubmit here');
      $id = $_POST['uptid'];
      $title = $_POST['title'];
      $author = $_POST['author'];
      error_log('upt_id = '.$id);
      error_log('title = '.$title);
      error_log('author = '.$author);
      $wpdb-&gt;query(&quot;UPDATE $table_name SET title='$title',author='$author' WHERE id='$id'&quot;);
      //echo &quot;&lt;script&gt;location.replace('admin.php?page=crud.php');&lt;/script&gt;&quot;;
      //echo &quot;&lt;script&gt;location.replace('http://localhost/tadpolewp/deano-crud/');&lt;/script&gt;&quot;;
            ?&gt;
      &lt;script type=&quot;text/javascript&quot;&gt;
        document.location.href=&quot;http://localhost/tadpolewp/deano-crud/&quot;;
    &lt;/script&gt;
    &lt;?php
      
    }
    if (isset($_GET['del'])) {
      $del_id = $_GET['del'];
      $wpdb-&gt;query(&quot;DELETE FROM $table_name WHERE user_id='$del_id'&quot;);
      //echo &quot;&lt;script&gt;location.replace('admin.php?page=crud.php');&lt;/script&gt;&quot;;
      echo &quot;&lt;script&gt;location.replace('http://localhost/tadpolewp/deano-crud/');&lt;/script&gt;&quot;;
    }
    ?&gt;
    &lt;div class=&quot;wrap&quot;&gt;
      &lt;h2&gt;CRUD Operations&lt;/h2&gt;
      &lt;table class=&quot;wp-list-table widefat striped&quot;&gt;
        &lt;thead&gt;
          &lt;tr&gt;
            
            &lt;th width=&quot;25%&quot;&gt;USER_ID1&lt;/th&gt;
            &lt;th width=&quot;25%&quot;&gt;__&lt;/th&gt;
            &lt;th width=&quot;25%&quot;&gt;Title&lt;/th&gt;
            &lt;th width=&quot;25%&quot;&gt;Author&lt;/th&gt;
            &lt;th width=&quot;25%&quot;&gt;Actions&lt;/th&gt;
          &lt;/tr&gt;
        &lt;/thead&gt;
        &lt;tbody&gt;
          &lt;form action=&quot;&quot; method=&quot;post&quot;&gt;
            &lt;tr&gt;
              &lt;td&gt;&lt;input type=&quot;text&quot; value=&quot;AUTO_GENERATED&quot; disabled&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input type=&quot;hidden&quot; name=&quot;wp_id&quot; value=&quot;&lt;?php echo esc_attr( $current_user_id ); ?&gt;&quot; &gt;&lt;/td&gt;
      
              &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;title&quot; name=&quot;title&quot;&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;author&quot; name=&quot;author&quot;&gt;&lt;/td&gt;
              &lt;td&gt;&lt;button id=&quot;newsubmit&quot; name=&quot;newsubmit&quot; type=&quot;submit&quot;&gt;INSERT&lt;/button&gt;&lt;/td&gt;
            &lt;/tr&gt;
          &lt;/form&gt;
          &lt;?php
            
            $result = $wpdb-&gt;get_results(&quot;SELECT * FROM $table_name where wp_id='$current_user_id'&quot;);
            foreach ($result as $print) {
              echo &quot;
              
                &lt;tr&gt;
                  
                  &lt;td width='25%'&gt;$print-&gt;wp_id&lt;/td&gt;
                  &lt;td width='25%'&gt;&lt;/td&gt;
                  &lt;td width='25%'&gt;$print-&gt;title&lt;/td&gt;
                  &lt;td width='25%'&gt;$print-&gt;author&lt;/td&gt;
                  &lt;td width='25%'&gt;&lt;a href='index.php?page=deano-crud.php&amp;upt=$print-&gt;id'&gt;&lt;button type='button'&gt;UPDATE&lt;/button&gt; &lt;a href='index.php?page=deano-crud.php&amp;del=$print-&gt;id'&gt;&lt;button type='button'&gt;DELETE&lt;/button&gt;&lt;/a&gt;&lt;/td&gt;
                &lt;/tr&gt;
                
             &quot;;
            }
          ?&gt;
  
        &lt;/tbody&gt;  
      &lt;/table&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;?php
        if (isset($_GET['upt'])) {
          $upt_id = $_GET['upt'];
          error_log('upt_id = '.$upt_id);
          $result = $wpdb-&gt;get_results(&quot;SELECT * FROM $table_name WHERE id='$upt_id'&quot;);
          foreach($result as $print) {
            $title = $print-&gt;title;
            $author = $print-&gt;author;
             error_log('title = '.$title);    
             error_log('author = '.$author);
             error_log('id = '.$print-&gt;id);
          }
          echo &quot;
          &lt;table class='wp-list-table widefat striped'&gt;
            &lt;thead&gt;
              &lt;tr&gt;
                &lt;th width='25%'&gt;ID&lt;/th&gt;
                &lt;th width='25%'&gt;Title&lt;/th&gt;
                &lt;th width='25%'&gt;Author&lt;/th&gt;
                &lt;th width='25%'&gt;Actions&lt;/th&gt;
              &lt;/tr&gt;
            &lt;/thead&gt;
            &lt;tbody&gt;
              &lt;form action='' method='post'&gt;
                &lt;tr&gt;
                  &lt;td width='25%'&gt;$print-&gt;id &lt;input type='hidden' id='uptid' name='uptid' value='$print-&gt;id'&gt;&lt;/td&gt;
                  &lt;td width='25%'&gt;&lt;input type='text' id='title' name='title' value='$print-&gt;title'&gt;&lt;/td&gt;
                  &lt;td width='25%'&gt;&lt;input type='text' id='author' name='author' value='$print-&gt;author'&gt;&lt;/td&gt;
                  &lt;td width='25%'&gt;&lt;button id='uptsubmit' name='uptsubmit' type='submit'&gt;UPDATE&lt;/button&gt; &lt;a href='index.php?page=deano-crud'&gt;&lt;button type='button'&gt;CANCEL&lt;/button&gt;&lt;/a&gt;&lt;/td&gt;
                &lt;/tr&gt;
              &lt;/form&gt;
            &lt;/tbody&gt;
          &lt;/table&gt;&quot;;
        }
      ?&gt;
    &lt;/div&gt;
    &lt;?php
  }
  add_shortcode('deanocrud_sc','deanocrud');
  </code></pre>