collecting data from the registration page

For collecting data from the login page you just need to edit the old cod e of the login_process as follows :

   public function register_process()
   {
     if($this->input->post('u_reg'))
     {
      $u_email=$this->input->post('u_email');
       $u_name=$this->input->post('u_name');
       $u_pass=md5($this->input->post('u_password'));

       $u_data=array('u_email'=>$u_email,'u_name'=>$u_name,'u_pass'=>$u_pass);
       echo "<pre>";
       var_dump($u_data);
       echo "</pre>";
     }
     else
     {
       redirect('register','refresh');
     }
   }

The above code will collect information from the register.php page and displays in the form of an array.



Prev
Next

Comments

Popular posts from this blog

Node.js Cheat Sheet

Enhancing Supply Chain Security and Cloud-Native Development with Chainguard

Codeigniter ! Simple But Powerful