modify function and If statement
<p>I have a inputbox that displays a default text "Input Network ID Here...". I need to take <code>$inputUri</code> and check it against function <code>checkUrl($string)</code> to see if its still there. If the text hasn't been cleared then display the <code>addError</code> message </p>

<pre><code>public function checkUrl($string)
{
    $inputUri = 'Input Network ID Here...';
    if(empty($string) || preg_match("#^([A-Z0-9][A-Z0-9_ -]*(?:.[A-Z0-9][A-Z0-9_ -]*)+):?(d+)?/?#i", $string)) 
    {
        return true;
    }
    else
    {
        if( isset($this) )
        {
            $this-&gt;addError("Input Network ID");
        }
        return false;
    }
}
</code></pre>
