public function set_value($field = '', $default = '')
    {
        if (!isset($this->_field_data[$field], $this->_field_data[$field]['postdata'])) {
            return $default;
        }
        return $this->_field_data[$field]['postdata'];
    }
public function set_value($field = '', $default = '')
    {
        if (!isset($this->_field_data[$field], $this->_field_data[$field]['postdata'])) {
            return $default;
        }
        return $this->_field_data[$field]['postdata'];
    }
public function set_value ( $ field = '' , $ default = '' ) { if ( ! isset ( $ this -> _field_data [ $ field ] , $ this -> _field_data [ $ field ] [ 'postdata' ] ) ) { return $ default ; } return $ this -> _field_data [ $ field ] [ 'postdata' ] ; }
Get the value from a form

Permits you to repopulate a form field with the value it was submitted
with, or, if that value doesn't exist, with the default

@param   string   the field name
@param   string
@return  string
Get the value from a form