• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Validation form

#6
I tested with no problem.

The code
PHP Code:
if($validation->run([
 
'Firstname'     => 'John',
 
'Lastname'      => 'Smith',
 
'Username'      => 'john',
 
'Password'      => 'pass',
 
'Passconfirm'   => 'passw'
 
], 'manager'))
 {
 echo 
'Ok';
 }else{ 
 
print_r($validation->getErrors());
 } 

Result
PHP Code:
Array
(
 
   [Username] => The Username field must contain a valid email address.
 
   [Password] => The Password field must be at least  characters in length.
 
   [Passconfirm] => The Passconfirm field does not match the  field.

Need a free blog? try Mitha Blog. Here You can create a free website or build a blog with dozens of free, customizable, mobile-ready designs and themes.
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.