function ff_getSubmit($name, $default=null)
{
    global $ff_processor;

    switch ((string)$default) {
        case FF_ARRAY: $value = array(); break;
        case FF_LIST : 
        case FF_SLIST:
        case FF_DLIST: $value = ''; break;
        default      : $value = $default;
    } // switch
    foreach ($ff_processor->submitdata as $data)
        if ($data[_FF_DATA_NAME]==$name) {
            $q = '';
            switch ((string)$default) {
                case FF_ARRAY:
                    $value[] = $data[_FF_DATA_VALUE];
                    break;
                case FF_SLIST:
                    $q = "'";
                case FF_DLIST:
                    if ($q=='') $q = '"';
                case FF_LIST:
                    if ($q=='' && !is_numeric($data[_FF_DATA_VALUE])) $q = "'";
                    if ($value!='') $value.=',';
                    $value .= $q.$data[_FF_DATA_VALUE].$q;
                    break;
                default:
                    return $data[_FF_DATA_VALUE];
            } // switch
         } // if
    return $value;
} // ff_getSubmit