From 12f9cc8fc102389bd232f35921b4bd6c4daa9c31 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 22 Jan 2008 07:21:32 +0000 Subject: Changed "numeric" to use is_numeric() and added an "integer" rule into the Validation library. --- user_guide/libraries/validation.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'user_guide/libraries') diff --git a/user_guide/libraries/validation.html b/user_guide/libraries/validation.html index c2b9b9647..f9cac856b 100644 --- a/user_guide/libraries/validation.html +++ b/user_guide/libraries/validation.html @@ -576,11 +576,18 @@ For example, your "username" error will be available at:
$this->valida No Returns FALSE if the form element contains anything other than alpha-numeric characters, underscores or dashes.   - + + + numeric + No + Returns FALSE if the form element contains anything other than numeric characters. +   + + -numeric +integer No -Returns FALSE if the form element contains anything other than numeric characters. +Returns FALSE if the form element contains anything other than an integer.   @@ -595,7 +602,6 @@ For example, your "username" error will be available at:
$this->valida Returns FALSE if the supplied IP is not valid.   -

Note: These rules can also be called as discreet functions. For example:

-- cgit v1.2.3-24-g4f1b