Table of Contents

IPAddressRule

Input validation rule that tests for a valid “dot-notation” IPv4 address.

Example

$form->addRule (new IPAddressRule ('fieldName'));

This example checks that the value in the field “fieldName” is a valid IP address (for example: 10.0.0.1).

Additional Information