Welcome Guest, Not a member yet? Register   Sign In
Validation Rules
#1

[eluser]xtremer360[/eluser]
I'm trying to figure out why my registration controller is not validating my submit form data.

http://www.kansasoutlawwrestling.com/kow...r/register

Registration Controller Code
http://pastebin.com/MEinkAtL

form_validation rules array which was placed into the application/config folder
Code:
<?php
$config = array(
                 'registration' => array(
                                    array(
                                            'field' => 'username',
                                            'label' => 'Username',
                                            'rules' => 'trim|required|xss_clean|min_length[6]|max_length[12]|alpha_numeric|strtolower|callback__username_exists'
                                         ),
                                    array(
                                            'field' => 'password',
                                            'label' => 'Password',
                                            'rules' => 'trim|required|xss_clean|min_length[6]|max_length[12]|alpha_numeric'
                                         ),
                                    array(
                                            'field' => 'confirm_password',
                                            'label' => 'Confirm Password',
                                            'rules' => 'trim|required|xss_clean|matches[password]|min_length[6]|max_length[12]|alpha_numeric'
                                         ),
                                    array(
                                            'field' => 'first_name',
                                            'label' => 'First Name',
                                            'rules' => 'trim|required|xss_clean|alpha'
                                         ),
                                    array(
                                            'field' => 'last_name',
                                            'label' => 'Last Name',
                                            'rules' => 'trim|required|xss_clean|alpha'
                                         ),
                                    array(
                                            'field' => 'email_address',
                                            'label' => 'Email Address',
                                            'rules' => 'trim|required|xss_clean|valid_email|callback__email_address_exists'
                                         )
                                    )
                                    
               );


Messages In This Thread
Validation Rules - by El Forum - 07-31-2012, 04:22 PM
Validation Rules - by El Forum - 07-31-2012, 06:44 PM
Validation Rules - by El Forum - 07-31-2012, 06:47 PM
Validation Rules - by El Forum - 07-31-2012, 07:39 PM
Validation Rules - by El Forum - 08-01-2012, 12:54 PM
Validation Rules - by El Forum - 08-01-2012, 01:06 PM
Validation Rules - by El Forum - 08-01-2012, 01:12 PM
Validation Rules - by El Forum - 08-01-2012, 01:18 PM
Validation Rules - by El Forum - 08-01-2012, 01:22 PM
Validation Rules - by El Forum - 08-01-2012, 01:25 PM
Validation Rules - by El Forum - 08-01-2012, 01:29 PM
Validation Rules - by El Forum - 08-01-2012, 01:30 PM
Validation Rules - by El Forum - 08-01-2012, 01:33 PM
Validation Rules - by El Forum - 08-01-2012, 01:37 PM
Validation Rules - by El Forum - 08-01-2012, 01:40 PM
Validation Rules - by El Forum - 08-01-2012, 01:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB