Welcome Guest, Not a member yet? Register   Sign In
[help]School Project Here
#15

[eluser]davidbehler[/eluser]
A couple of things I noticed so far:
1. redirect() doesn't require the index.php, just use the uri string:
Code:
redirect('registrar/main_page');
2. I would switch the order of the validation rules and run trim() before the required rule is run:
Code:
$this->form_validation->set_rules('username', 'Username', 'trim|required|max_length[50]|xss_clean');
3. Why do you use extract()? Definetly not needed, just access the $_POST array directly or use the post method of the input class:
Code:
$username = $_POST['username'];
// or
$username = $this->input->post('username');

And your error description doesn't help at all. Have you tried to debug your code by adding some echos? E.g. after the validation is run, after the check_login method is called? What does "i cannot proceed to the redirect function…" mean anyway? What happens instead?


Messages In This Thread
[help]School Project Here - by El Forum - 08-18-2011, 06:56 AM
[help]School Project Here - by El Forum - 08-18-2011, 06:57 AM
[help]School Project Here - by El Forum - 08-18-2011, 07:09 AM
[help]School Project Here - by El Forum - 08-18-2011, 07:10 AM
[help]School Project Here - by El Forum - 08-18-2011, 07:20 AM
[help]School Project Here - by El Forum - 08-18-2011, 07:22 AM
[help]School Project Here - by El Forum - 08-18-2011, 07:31 AM
[help]School Project Here - by El Forum - 08-18-2011, 07:35 AM
[help]School Project Here - by El Forum - 08-18-2011, 07:48 AM
[help]School Project Here - by El Forum - 08-18-2011, 07:55 AM
[help]School Project Here - by El Forum - 08-18-2011, 07:56 AM
[help]School Project Here - by El Forum - 08-19-2011, 05:52 AM
[help]School Project Here - by El Forum - 08-19-2011, 05:59 AM
[help]School Project Here - by El Forum - 08-19-2011, 06:04 AM
[help]School Project Here - by El Forum - 08-19-2011, 06:13 AM
[help]School Project Here - by El Forum - 08-19-2011, 06:23 AM
[help]School Project Here - by El Forum - 08-19-2011, 06:27 AM
[help]School Project Here - by El Forum - 08-19-2011, 06:34 AM
[help]School Project Here - by El Forum - 08-19-2011, 06:36 AM
[help]School Project Here - by El Forum - 08-19-2011, 06:43 AM
[help]School Project Here - by El Forum - 08-19-2011, 06:48 AM
[help]School Project Here - by El Forum - 08-19-2011, 06:52 AM
[help]School Project Here - by El Forum - 08-19-2011, 06:55 AM
[help]School Project Here - by El Forum - 08-19-2011, 06:58 AM
[help]School Project Here - by El Forum - 08-19-2011, 06:58 AM
[help]School Project Here - by El Forum - 08-19-2011, 07:08 AM
[help]School Project Here - by El Forum - 08-19-2011, 07:13 AM
[help]School Project Here - by El Forum - 08-19-2011, 07:18 AM
[help]School Project Here - by El Forum - 08-19-2011, 07:26 AM
[help]School Project Here - by El Forum - 08-19-2011, 07:35 AM
[help]School Project Here - by El Forum - 08-19-2011, 07:38 AM
[help]School Project Here - by El Forum - 08-19-2011, 07:40 AM
[help]School Project Here - by El Forum - 08-19-2011, 07:42 AM
[help]School Project Here - by El Forum - 08-19-2011, 07:45 AM
[help]School Project Here - by El Forum - 08-19-2011, 07:56 AM
[help]School Project Here - by El Forum - 08-19-2011, 07:59 AM
[help]School Project Here - by El Forum - 08-19-2011, 08:04 AM
[help]School Project Here - by El Forum - 08-19-2011, 08:14 AM
[help]School Project Here - by El Forum - 08-19-2011, 08:20 AM
[help]School Project Here - by El Forum - 08-19-2011, 08:33 AM
[help]School Project Here - by El Forum - 08-19-2011, 08:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB