Recent changes RSS feed
 

SizeRangeRule

Input validation rule that tests for minimum (and optionally, maxmimum) textual field size.

A username field commonly needs to be of a specific size range.

Example

$form->addRule (new SizeRangeRule ('fieldName', 4, 12));

This example checks that the length of the value in the field “fieldName” is at least four characters and no more than 12 characters.

Additional Information

 
wact/api/validation/rule/sizerangerule.txt · Last modified: 2006/12/09 17:16
 
Hosting for this site donated by Procata PHP Development