title: Error 310 (net::ERR_TOO_MANY_REDIRECTS)
body: <p>why after use of redirect in codeigniter i have this error:</p>
  
  <blockquote>
    <p>Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many
    redirects.</p>
  </blockquote>
  
  <p>if use of this: <code>redirect('admin/hotel/insert', 'refresh');</code>, refresh page to be non-stop, burst.<br>
  what do i do?</p>
  
  <p>my codes(<code>function</code>) in controller <code>hotel</code>:</p>
  
  <pre><code>function insert(){
      $this-&gt;load-&gt;view('admin/hotel_submit_insert');
          $today = jgmdate("j F Y");
          $data = array (
          'name' =&gt; $this-&gt;input-&gt;post('name', TRUE),
          'star' =&gt; $this-&gt;input-&gt;post('star', TRUE),
          'address' =&gt; $this-&gt;input-&gt;post('address', TRUE),
          'number_phone' =&gt; $this-&gt;input-&gt;post('number_phone', TRUE),
          'fax' =&gt; $this-&gt;input-&gt;post('fax', TRUE),
          'site' =&gt; $this-&gt;input-&gt;post('site', TRUE),
          'email' =&gt; $this-&gt;input-&gt;post('email', TRUE),
          'useradmin' =&gt; $this-&gt;input-&gt;post('useradmin', TRUE),
          'date' =&gt; $today ,
          );
          $this-&gt;db-&gt;insert('hotel_submits', $data);
          redirect('admin/hotel/insert'); // after use of this
      }
  </code></pre>
  
  <p>With respect</p>