[eluser]shivi[/eluser]
hi all . i have a register_view where i made my register form and after i made new controller
register_controller
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Register_controller extends CI_Controller {
public function index(){
$this->register();
}
public function register(){
$this->load->library("form_validation");
$this->form_validation->set_rules("Fullname","FullName","required|xss_clean");
$this->form_validation->set_rules("Username","UserName","required|xss_clean");
$this->form_validation->set_rules("Password","Password","required|xss_clean");
$this->form_validation->set_rules("RepeatPassword","RepeatPassword","required|xss_clean");
$this->form_validation->set_rules("Email","E-Mail","required|xss_clean");
if($this->form_validation->run() == false){
$this->load->view("register_view");
}else{
echo "ok";
}
}
}
but when i clik on submit and show me message page not found !! what i have to do for resolve this problem thanks