wiki formating fix

World Wide Web Server 2012-07-04 16:03:52 -07:00
parent cb6b072271
commit 44e261b0cd

@ -1,6 +1,7 @@
A wiki is for collaboration right. I suggest we extend the validation library here together so feel free to add your code too.
[size=4]Rule Reference[/size]
=================[size=4]Rule Reference[/size]========================
[size=3]CI_Validation[/size]
[code]
required No Returns FALSE if the form element is empty.
matches Yes Returns FALSE if the form element does not match the one in the parameter. matches[form_item]
@ -13,10 +14,16 @@ alpha_dash No Returns FALSE if the form element contains anything other
numeric No Returns FALSE if the form element contains anything other than numeric characters.
valid_email No Returns FALSE if the form element does not contain a valid email address.
valid_ip No Returns FALSE if the supplied IP is not valid.
[/code]
[code]
[size=3]MY_Validation[/size]
no_space No Returns FALSE if the supplied post contains spaces.
[/code]
[size=4]Code[/size]
=================[size=4]Code[/size]========================
[size=3]no_space[/size]
[url=http://codeigniter.com/forums/member/41074/]Author: TaMeR[/url]
[code]
/**
@ -29,7 +36,9 @@ function no_space($str)
return ( ! preg_match("#\s#", $str)) ? FALSE : TRUE;
}
[/code]
[size=4]Language[/size]
=================[size=4]Language[/size]========================
[size=3]English[/size]
[code]