src/fieldwork/Form.php
public function v ($query, $default = '')
    {
        $f = $this->f($query);
        if ($f !== null)
            return $f->getValue();
        else
            return $default;
    }
public function v ($query, $default = '')
    {
        $f = $this->f($query);
        if ($f !== null)
            return $f->getValue();
        else
            return $default;
    }
public function v ( $ query , $ default = '' ) { $ f = $ this -> f ( $ query ) ; if ( $ f !== null ) return $ f -> getValue ( ) ; else return $ default ; }
Searches form fields and returns its value

@param string $query   id to search for
@param string $default default value

@return string value of closest match or default value if field not found
Searches form fields and returns its value