title: 500 internal server error in ajax in codeigniter
body: <p>i am trying to post form values using ajax..but i got 500 internal error..</p>
  
  <p>here is my ajax code:</p>
  
  <pre><code>    $(function(){
      $( "#submit_enquiry" ).click(function(event)
      {
        event.preventDefault();
        var date= $("#date").val();
        var candidate_id= $("#candidate_id").val();
        var user_id= $("#user_id").val();
        var req_id= $("#req_id").val();
        var status_type_id= $("#status_type_id").val();
        var interview_type_id= $("#interview_type_id").val();   
        var url = "http://localhost/job_portal/index.php/Candidate/candidate_process" ;
        $.ajax(
        {
        type:"POST",
        // url: "&lt;?php echo base_url(); ?&gt;index.php/Candidate/candidate_process",
        //url:"http://localhost/job_portal/index.php/Candidate/candidate_process" ,
        url: url,
        data:{
        'date':date,
        'candidate_id':candidate_id,
        'user_id':user_id,
        'req_id':req_id,
        'status_type_id':status_type_id,
        'interview_type_id':interview_type_id
  
        },
        dataType: 'JSON',
      success:function(data)
      {
          console.log(data);
      }
  });
  
  });
  
  });
  </code></pre>
  
  <p>Button code:</p>
  
  <pre><code> &lt;button type="submit" id="submit_enquiry" name="submit" class="btn btn-primary"&gt;Schedule Next Round&lt;/button&gt;&lt;br&gt;&lt;/br&gt;
  </code></pre>
  
  <p>Can anyone help me..</p>
  
  <p>Thanks in advance</p>