Welcome Guest, Not a member yet? Register   Sign In
trim|valid_email not working in validation
#3

(This post was last modified: 01-07-2018, 12:49 PM by 040mag.)

(01-07-2018, 12:21 PM)InsiteFX Wrote: Use php's trim method before inserting into the database.

You are doing the set_rules wrong, there  is no trim in set_rules.

PHP Code:
set_rules($field[, $label ''[, $rules ''[, $errors = array()]]])

Parameters:    

$field (string) – Field name
$label 
(string) – Field label
$rules 
(mixed – Validation rules, as a string list separated by a pipe “|, or as an array or rules
$errors 
(array) – A list of custom error messages 
Reply


Messages In This Thread
RE: trim|valid_email not working in validation - by 040mag - 01-07-2018, 12:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB