From 866b8138c5f51b0ca544dd8a91c265d9200acab8 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Mon, 21 Apr 2008 22:02:37 +0000 Subject: doc clarifications, example fixes, grammar. --- user_guide/libraries/validation.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user_guide/libraries/validation.html') diff --git a/user_guide/libraries/validation.html b/user_guide/libraries/validation.html index bf9796feb..06ab665ca 100644 --- a/user_guide/libraries/validation.html +++ b/user_guide/libraries/validation.html @@ -319,7 +319,7 @@ $rules['password'] = "trim|required|matches[passconf]|md5" $rules['passconf'] = "trim|required";
$rules['email'] = "trim|required|valid_email"; -

In the above, we are "trimming" the fields, converting the password to MD5, and running the username through +

In the above example, we are "trimming" the fields, converting the password to MD5, and running the username through the "xss_clean" function, which removes malicious data.

Any native PHP function that accepts one parameter can be used as a rule, like htmlspecialchars, @@ -446,7 +446,7 @@ error message.

} -

Now open your myform.php view file and update the value in each field so that it has an object corresponding to its name:

+

Now open your myform.php view file and update the value in each field so that it has an attribute corresponding to its name: