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

From Joomla! Documentation

This page is a translated version of the page Form validation and the translation is 44% complete.
Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎italiano • ‎русский • ‎العربية • ‎中文(中国大陆)‎

Joomla has client-side and server-side form validation capabilities.
Server side validation is essential since everything before that can be overridden on the user side by hackers. However client-side is the most user-friendly validation, so using both is considered best practice.

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

.. делается с помощью 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