Advertisement
dewa_01

Untitled

Dec 15th, 2019
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2.     class Regis extends CI_Controller{
  3.  
  4.         public function __construct(){
  5.             parent::__construct();
  6.             $this->load->model('model_regis');
  7.         }
  8.  
  9.         public function index(){
  10.             $username=$this->input->post('username');
  11.             $email=$this->input->post('email');
  12.             $password=$this->input->post('password');
  13.             $group=$this->input->post('group');
  14.             $this->model_regis->tambah($username,$email,$password,$group);
  15.             redirect('regis/member');
  16.         }
  17.         public function member(){
  18.             $this->load->view('form_regis');
  19.         }
  20.         public function tambah(){
  21.             $this->load->view('form_login');
  22.         }
  23.     }
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement