# contact-forms/1.4.1/PFBC/Validation/Url.php

Contact Forms by Cimatti, version 1.4.1. 11 lines.

- Page: https://pluginprobe.com/plugins/contact-forms/1.4.1/code/PFBC/Validation/Url.php
- Raw: https://pluginprobe.com/plugins/contact-forms/1.4.1/raw/PFBC/Validation/Url.php
- Modified: 2013-07-25T16:57:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/contact-forms/1.4.1/code/PFBC/Validation/Url.php#L10-L20`.

```php
<?php
class Validation_Url extends Validation {
	protected $message = "Error: %element% must contain a url (e.g., http://www.google.com).";

	public function isValid($value) {
		if($this->isNotApplicable($value) || filter_var($value, FILTER_VALIDATE_URL))
			return true;
		return false;	
	}
}

```
