title: Form action not working in codeigniter
body: <p>In one of my views form action suddenly stopped working. When I click on submit page stays the same.But my other forms on same domain are working fine. Then what is the problem with this form??
  I am doing this in codeigniter. So what might be the reason behind this?? </p>
  
  <pre><code> &lt;form enctype="multipart/form-data" method="POST" action=&lt;?php echo base_url()."index.php/controller_user/checker"; ?&gt;  &gt;
    &lt;table width="100%" border="0" &gt;
      &lt;tr&gt;
        &lt;td&gt;
          &lt;table&gt;
            &lt;tr&gt;
              &lt;td&gt;
                &lt;div id="prj" style="display: none;"&gt;Enter Project:-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                  &lt;input  type="text" name="prname" required/&gt;
                &lt;/div&gt;
                &lt;div id="project"&gt;Enter Project:-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  
                  &lt;select class="prj_name" name="prj_name" id="prj_name" onchange="process(this.value)" tabindex="11" required&gt;
                    &lt;option selected="selected"&gt;Select Project&lt;/option&gt;
                    &lt;?php
                      $sql = "SELECT * FROM project  ORDER BY prj_id DESC";
                      $query = $this-&gt;db-&gt;query($sql);
                      if ($query-&gt;num_rows() &gt; 0){
                        foreach ($query-&gt;result() as $row){
                          $projectName= $row-&gt;prj_name;
                          $projectID=$row-&gt;prj_id;
                          echo '&lt;option value="'.$projectID.'"&gt;'.$projectName.'&lt;/option&gt;';
                        }//end of for loop
                        echo '&lt;option value="'.'0'.'"&gt;'.'New Project'.'&lt;/option&gt;';
                      } 
                    ?&gt;
                  &lt;/select&gt;
                &lt;/div&gt;
              &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
              &lt;td&gt;
                &lt;input type="submit" name="submit" value="Submit"/&gt;
              &lt;/td&gt;
            &lt;/tr&gt;
          &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This is my controller_user/checker</p>
  
  <pre><code>  function checker()
     {
  
     $projectname=$_POST['prj_name'];
  
          if($projectname=='0')
          {
              $config['upload_path'] = './uploads/';
              $config['allowed_types'] = '*';
              $config['max_size'] = '100';
              $config['max_width']  = '1024';
              $config['max_height']  = '768';
              $this-&gt;load-&gt;library('upload', $config);
              $this-&gt;upload-&gt;do_upload('layout');
              $data = $this-&gt;upload-&gt;data();
              move_uploaded_file($_FILES["layout1"]["tmp_name"],"uploads/" . $_FILES["layout1"]
    ["name"]);
              $file="uploads/".$_FILES["layout1"]["name"];
              $this-&gt;model_user-&gt;add_user_case1($file);
  
          }
          else
          { 
              $phase_name=$_POST['phase_name'];
              //$layout=$_POST['layout'];
               if($phase_name=='0') 
               {
                  $config['upload_path'] = './uploads/';
              $config['allowed_types'] = '*';
              $config['max_size'] = '100';
              $config['max_width']  = '1024';
              $config['max_height']  = '768';
              $this-&gt;load-&gt;library('upload', $config);
              $this-&gt;upload-&gt;do_upload('layout');
              $data = $this-&gt;upload-&gt;data();
              move_uploaded_file($_FILES["layout"]["tmp_name"],"uploads/" . $_FILES["layout"
  
      ]["name"]);
              $file="uploads/".$_FILES["layout"]["name"];
  
    /*$sql=$this-&gt;db-&gt;query("INSERT INTO phase (layout) VALUES ('$file')");*/
                  $this-&gt;model_user-&gt;add_user_case2($projectname,$file);
  
               }
               else
               {
                   $plan_name=$_POST['plan_name'];
  
                  if($plan_name=='0' )
                  {
  
  
  
                      $this-&gt;model_user-&gt;add_user_case3($phase_name);
  
                  }
                  else{
                      $this-&gt;model_user-&gt;add_user_case4($plan_name);
  
                  }
               }
  
          }
  
           echo '&lt;script&gt;alert("data registered successfully");&lt;/script&gt;';
          redirect ('controller_search','refresh');
  
       }
  </code></pre>