title: How can I show success message (not alert box) in home page after successful signup
body: <p>How can I show a success message (not alert box) in home page after a successful signup?</p>
  
  <p>This is my controller function.</p>
  
  <pre><code>public function reg()
      {
          $data['baseurl'] = base_url();
          $baseurl    =   base_url();
          $this-&gt;load-&gt;model('Regdatabase');
          $this-&gt;form_validation-&gt;set_rules('firstname', 'First Name', 'required');
          $this-&gt;form_validation-&gt;set_rules('lastname', 'Last Name', 'required');
          $this-&gt;form_validation-&gt;set_rules('email', 'Email', 'required|valid_email');
          $this-&gt;form_validation-&gt;set_rules('password', 'Password', 'required|matches[cpassword]|md5');
          $userdata['id']    =    Null; 
          $userdata['firstname']   =  $this-&gt;input-&gt;post('firstname');
          $userdata['lastname']   =   $this-&gt;input-&gt;post('lastname');
          $userdata['email']  =   $this-&gt;input-&gt;post('email');
          $userdata['password']   =   $this-&gt;input-&gt;post('password');
          $userdata['status']     =   "1";
          $this-&gt;Regdatabase-&gt;DataInsert($userdata);
          // INSERT DATA INTO TABLE
          redirect($baseurl.'register');
      }
  </code></pre>