| Новости | FAQ | Авторы | Документация | В действии | Библиотека |
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Василий М. 23.01.2018 09:44
^if(def $cookie:result){<p>$cookie:result</p>$cookie:result[]}
<form>
<input type="text" name="field1">
<input type="text" name="field2">
<input type="text" name="field3">
<input type="submit" name="fire">
</form>
^if(def $form:fire){
^if(def $form:field1 || def $form:field2 || def $form:field3){}{$cookie:result[нифига нету]$response:location[http://samedomain.ru/samefolder?a=b#c]}
^if(def $form:field1){}{$cookie:result[нет первого]$response:location[http://samedomain.ru/samefolder?a=b#c]}
^if(def $form:field1){}{$cookie:result[нет второго]$response:location[http://samedomain.ru/samefolder?a=b#c]}
^if(def $form:field1){}{$cookie:result[нет третьего]$response:location[http://samedomain.ru/samefolder?a=b#c]}
# тут обработка
}Сабмит пустой формы даёт "нет третьего".