| Новости | FAQ | Авторы | Документация | В действии | Библиотека |
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
agat 09.07.2007 11:05 / 09.07.2007 12:27
мне нужен внутренний редирект, со всеми полями формы. Понятное дело, что с помощью используемого мною метода, описанного постом выше, поля типа file похерятся. Как мне их передать?################################################
@makeUri[hParams][hFields]
$hParams[^hash::create[$hParams]]
$hFields[$hParams]
$hFields[^hFields.union[$form:tables]]
$hFields[^hFields.union[$form:fields]]
^if(def $hParams.hExclude && $hParams.hExclude is "hash"){
^hFields.sub[$hParams.hExclude]
^hFields.sub[$.hExclude[]]
}
$result[$hParams.targetUrl^if($hFields){?^hFields.foreach[sField;uValue]{^if($uValue is "table"){^uValue.menu{$sField=^taint[uri][$uValue.field]}[&]}{$sField=^if($uValue is "file"){^taint[uri][^uValue.base64[]]}{^taint[uri][$uValue]}}}[&]}]
# end of @makeUri[]Теперь апач падает с ошибкойThe malformed header from script error message indicates that your script is not properly returning the header portion of the response. You may have misspelled Content-type, not supplied a valid type (such as text/html), or failed to print out a blank line to separate the header from body of the response.Где грабли? В Парсере, или в коде?