• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about form_validation callbacks

#1
[eluser]Unknown[/eluser]
CI form error is return 1 by 1 so means
if i have 2 fields are required and it will return
"field_1 is required"
"field_1 is required"

and now i want to create my own error which if 2 fields are empty and only return 1 error msg
"fields_1 and field_2 are required"

how do i do this with callback?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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