Recent changes RSS feed
 

UrlRule

Input validation rule that tests for a valid URL with a specific URL scheme.

Example

$form->addRule (new UrlRule ('fieldName', array ('http', 'https')));

This example checks that the value in the field “fieldName” is a URL and has a scheme of either “http” or “https”.

Additional Information

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