function Value($field, $trim = true)
    {
        $result = Request::IsPost() ? Request::PostData($field) : $this->DefaultValue($field);
        if ($trim)
        {
            return trim($result);
        }
        return $result;
    }
function Value($field, $trim = true)
    {
        $result = Request::IsPost() ? Request::PostData($field) : $this->DefaultValue($field);
        if ($trim)
        {
            return trim($result);
        }
        return $result;
    }
function Value ( $ field , $ trim = true ) { $ result = Request :: IsPost ( ) ? Request :: PostData ( $ field ) : $ this -> DefaultValue ( $ field ) ; if ( $ trim ) { return trim ( $ result ) ; } return $ result ; }
Gets the value of a field
@param string $field The field name
@param bool $trim True if the value shall be trimmed by whitespace characters
Gets the value of a field