title: A PHP Error was encountered Severity: Notice Message: Undefined index: questions
body: <pre><code>&lt;?php
      if ( ! defined('BASEPATH')) exit('No direct script access allowed');
      class checklist extends CI_Controller 
      {
          function __construct()
          {
              parent::__construct();
              $this-&gt;load-&gt;helper('url');
              $this-&gt;load-&gt;helper('form');
              $this-&gt;load-&gt;model('checklist_model');
          }
          public function index()
          {
              $data['check_list'] = $this-&gt;checklist_model-&gt;get_all_details();
              $this-&gt;load-&gt;view('show_checklist', $data);
          }
          public function form_dropdown() 
          {
              $this-&gt;load-&gt;view('insert_checklist');
          }
          public function data_submitted()
          {
  
              $data = array('dropdown_single' =&gt; $this-&gt;input-&gt;post('Technology'));
              $this-&gt;load-&gt;model('checklist_model');
              $this-&gt;checklist_model-&gt;insert_in_db($data);
              $this-&gt;load-&gt;model("checklist_model");
              $result = $this-&gt;checklist_model-&gt;read_from_db($data);
              $data['result'] = $result[0];
              $this-&gt;load-&gt;view('insert_checklist', $data);
          }   
          public function add_form()
          {
              $this-&gt;load-&gt;view('insert_checklist');
          }
          public function edit()
          {
              $id = $this-&gt;uri-&gt;segment(3);
               $data['details'] = $this-&gt;checklist_model-&gt;getById($id);
              $this-&gt;load-&gt;view('edit', $data);
          }
          public function delete($id)
          {
              $this-&gt;checklist_model-&gt;delete_a_detail($id);
              $this-&gt;index();
          }
          public function insert_new_details()
          {
              $udata['technology_name'] = $this-&gt;input-&gt;post('technology_name');
              $udata['questions'] = $this-&gt;input-&gt;post('questions');
              $udata['status'] = $this-&gt;input-&gt;post('status');
              $udata['comments'] = $this-&gt;input-&gt;post('comments');
              $res = $this-&gt;checklist_model-&gt;insert_details_to_db($udata);
              if($res)
              {
                  header('location:'.base_url()."/index.php/checklist/".$this-&gt;index());
              }
          }
          public function update()
          {
              $mdata['technology_name']=$_POST['technology_name'];
              $mdata['questions']=$_POST['questions'];
              $mdata['status']=$_POST['status'];
              $mdata['comments']=$_POST['comments'];
              $res=$this-&gt;checklist_model-&gt;update_info($mdata, $_POST['id']);
              if($res)
              {
                  header('location:'.base_url()."/index.php/checklist/".$this-&gt;index());
              }
          }
      }
  ?&gt;
  </code></pre>