title: function show in url after submit form in codeigniter
body: <p>When I submit this form all things are well n good but I want the controller function not shows in url. I want all things are done in same page. Still the url show </p>
  
  <pre><code>localhost/Naveen/CodeIgniter/welcome/insertform
  </code></pre>
  
  <p>but I don't want the form_open('') show's in url so how it is possible?</p>
  
  <p><b>controller welcome.php</b></p>
  
  <pre><code>public function insertform()
  {
      if (isset($_POST['mysmt']))
      {
          $this-&gt;form_validation-&gt;set_rules('fname', 'Name', 'required');
          $this-&gt;form_validation-&gt;set_rules('femail', 'Email', 'trim|required|valid_email');
          $this-&gt;form_validation-&gt;set_rules('fmobile', 'Mobile', 'required');
          if ($this-&gt;form_validation-&gt;run() == FALSE)
          {
              $this-&gt;load-&gt;view('welcome_view');
          }
          else
          {
              $_POST['fname'];
              $_POST['femail'];
              $_POST['fmobile'];
              if($this-&gt;test_model-&gt;insert('user_accounts',array('',$_POST['fname'],$_POST['femail'],$_POST['fmobile'])))
              {
                  $success['success']="Thanks For Join Us";
                  $this-&gt;load-&gt;view('welcome_view',$success);
              }
          }
      }
      else
      {
          $this-&gt;load-&gt;view('welcome_view');
      }
  }
  </code></pre>
  
  <p><b>view welcome_view.php</b><br></p>
  
  <pre><code>&lt;?php echo form_open('welcome/insertform'); // ?&gt;
      &lt;div class="form-group"&gt;
      &lt;?php 
      if(isset($success))
      {?&gt;
          &lt;input type="button" class="form-control btn-success" value="&lt;?php echo $success; ?&gt;"&gt;
  &lt;?php }
      else
      {
          echo "";
      }?&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
        &lt;label class="control-label" for="focusedInput"&gt;Name &lt;?php echo form_error('fname'); ?&gt;&lt;/label&gt;
        &lt;?php
        $entername = array(
            'name'        =&gt; 'fname',
            'value'       =&gt; '',
            'maxlength'   =&gt; '100',
            'placeholder' =&gt; 'Enter Name',
            'class'       =&gt; 'form-control',
          );
        echo form_input($entername); ?&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
        &lt;label class="control-label" for="focusedInput"&gt;Email &lt;?php echo form_error('femail'); ?&gt;&lt;/label&gt;
        &lt;?php
        $enteremail = array(
            'name'        =&gt; 'femail',
            'value'       =&gt; '',
            'maxlength'   =&gt; '100',
            'placeholder' =&gt; 'Enter Email',
            'class'       =&gt; 'form-control',
          );
        echo form_input($enteremail); ?&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
        &lt;label class="control-label" for="focusedInput"&gt;Mobile &lt;?php echo form_error('fmobile'); ?&gt;&lt;/label&gt;
        &lt;?php
        $entermobile = array(
            'name'        =&gt; 'fmobile',
            'value'       =&gt; '',
            'maxlength'   =&gt; '100',
            'placeholder' =&gt; 'Enter Mobile',
            'class'       =&gt; 'form-control',
          );
        echo form_input($entermobile); ?&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
      &lt;?php
        $f_formsmt = array(
            'name'        =&gt; 'mysmt',
            'value'       =&gt; 'Submit Form',
            'class'       =&gt; 'form-control btn btn-success',
          );
        echo form_submit($f_formsmt); ?&gt;
      &lt;/div&gt;
      &lt;?php echo form_close(); ?&gt;
  </code></pre>