Валидация формы

From Joomla! Documentation

This page is a translated version of the page Form validation and the translation is 44% complete.

Other languages:
العربية • ‎Deutsch • ‎English • ‎español • ‎français • ‎Nederlands • ‎русский • ‎中文(中国大陆)‎

Joomla has client-side and server-side form validation capabilities.
Server side validation is the minimum since everything before that can be overridden on the user side. But client-side is the most user-friendly one, so using both is not a bad idea (especially since the latter is unobtrusive and won't give problems on javascript-disabled or -problematic client browsers).

Валидация на стороне клиента

.. делается с помощью javascript, когда пользователь заполняет поля формы.
Использует "'классы"' HTML required и validate-[xxx] (где [ххх] это правило Joomla! или произвольное правило, например validate-numeric)

More here: Client-side form validation

Валидация на стороне сервера

.. is done after having submitted the form and will normally return to the form when not validated with some extra messages.
It uses the HTML attributes required ("true" or "required") and validate (with value being a joomla or custom rule; e.g. validate="email")

More here: Server-side form validation