I have a Controller called
class Register extends CI_Controller
public function index()
public function create()
//set rules here
if ($this->form_validation->run() == TRUE)
//everything checks out
<form id="register_form" method="post" action="register/create" title="Create an Account">
<!-- input fields -->
Use full url. Either
site_url('register') in your form's action.
It's good practice you use either of these or preffix with
base_url() since that allows your site to run without having to be the domain path.
For instance you can, if needed run the site on example.com/my_site/ instead of only being able to run on example.com.
For fullest possible control of your form's action, always start on
http:// and avoid relative urls (action="register" for instance).