Welcome Guest, Not a member yet? Register   Sign In
Form submit using wrong path
#8

[eluser]williamparry[/eluser]
It doesn't seem to be md5ing my password.

Code:
$rules['firstName']        = "trim|required|xss_clean";
        $rules['lastName']        = "trim|required|xss_clean";
        $rules['password']        = "trim|required|matches[passwordConf]|md5";
        $rules['passwordConf']    = "trim|required";
        $rules['emailAddress']    = "required|valid_email|checkEmailAddress";
        
        $fields['firstName']    = 'First name';
        $fields['lastName']        = 'Last name';
        $fields['password']        = 'Password';
        # $fields['phoneNumber']    = 'Phone number'; If I don't have this in, it will crash
        $fields['passwordConf']    = 'Password Confirmation';
        $fields['emailAddress']    = 'Email Address';

        $this->validation->set_fields($fields);
        $this->validation->set_error_delimiters('<div class="error">', '</div>');
        $this->validation->set_rules($rules);
        
        $inputData    = array(
                            'firstName'        => $this->input->post('firstName'),
                            'lastName'        => $this->input->post('lastName'),
                            'password'        => $this->input->post('password'),
                            'emailAddress'    => $this->input->post('emailAddress'),
                            'phoneNumber'    => $this->input->post('phoneNumber'),
                            'city'            => $this->input->post('city'),
                            
                    );

If I don't put in:

Code:
$fields['phoneNumber']

It says:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: CI_Validation::$phoneNumber

Filename: views/register.php

Line Number: 21


Messages In This Thread
Form submit using wrong path - by El Forum - 01-12-2008, 04:00 PM
Form submit using wrong path - by El Forum - 01-12-2008, 04:13 PM
Form submit using wrong path - by El Forum - 01-12-2008, 04:22 PM
Form submit using wrong path - by El Forum - 01-12-2008, 05:19 PM
Form submit using wrong path - by El Forum - 01-12-2008, 05:25 PM
Form submit using wrong path - by El Forum - 01-12-2008, 05:41 PM
Form submit using wrong path - by El Forum - 01-12-2008, 07:52 PM
Form submit using wrong path - by El Forum - 01-12-2008, 10:23 PM
Form submit using wrong path - by El Forum - 01-13-2008, 02:45 AM
Form submit using wrong path - by El Forum - 01-13-2008, 03:41 AM
Form submit using wrong path - by El Forum - 01-13-2008, 06:16 AM
Form submit using wrong path - by El Forum - 01-13-2008, 11:28 PM
Form submit using wrong path - by El Forum - 01-13-2008, 11:48 PM
Form submit using wrong path - by El Forum - 01-13-2008, 11:50 PM
Form submit using wrong path - by El Forum - 01-14-2008, 12:06 AM
Form submit using wrong path - by El Forum - 01-14-2008, 12:25 AM
Form submit using wrong path - by El Forum - 01-14-2008, 12:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB