title: Issues with header while redirecting it to the current page
body: <p>I have wriiten as</p>
  
  <pre><code>&lt;?php
    if (isset($_POST['delete'])):
      $size = count($_POST['checkbox']);
      for ($i=0; $i&lt;=$size-1; $i++) {
      $id = $_POST['checkbox'][$i];
      $wpdb-&gt;query("DELETE FROM wp_submitted_form WHERE id =".$id);
      }
     header('Location: http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
    endif; 
  ?&gt;
  </code></pre>
  
  <p>When submit button is clicked it throws error message as:</p>
  
  <p><code>Cannot modify header information - headers already sent by (output started at /home/wizcorea/public_html/wp-admin/includes/template.php:1657) in /home/wizcorea/public_html/wp-content/plugins/submitted-form/view.php on line 54</code></p>
  
  <p>I want that page should get refreshed after submit button is clicked</p>