Welcome Guest, Not a member yet? Register   Sign In
Validation form
#5

(11-19-2016, 02:20 PM)ridho Wrote: there is no "trim" validation rule in ci4

(11-19-2016, 02:36 PM)ridho Wrote: Please put Your controller code here, and what error that showing on the first run?

There is no error shown, the check is skipped when Password has a value.

PHP Code:
$this->validation->run([

    
'Firstname'     => $this->request->getPost('Firstname'),
    
'Lastname'      => $this->request->getPost('Password'),
    
'Username'      => $this->request->getPost('Username'),
    
'Password'      => $this->request->getPost('Password'),
    
'Passconfirm'   => $this->request->getPost('Passconfirm')

], 
'manager'); 
Reply


Messages In This Thread
Validation form - by superior - 11-19-2016, 08:44 AM
RE: Validation form - by ridho - 11-19-2016, 02:20 PM
RE: Validation form - by superior - 11-19-2016, 02:25 PM
RE: Validation form - by ridho - 11-19-2016, 02:36 PM
RE: Validation form - by superior - 11-19-2016, 02:51 PM
RE: Validation form - by ridho - 11-19-2016, 05:05 PM
RE: Validation form - by superior - 11-19-2016, 05:49 PM
RE: Validation form - by ridho - 11-19-2016, 07:33 PM
RE: Validation form - by superior - 11-20-2016, 06:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB