[TYPO3-dev] Validate e-mail in backend when adding a record
Olle Haerstedt
o.haerstedt at bitmotion.de
Thu Oct 9 15:54:25 CEST 2014
Quote: Stephan Großberndt wrote on Thu, 09 October 2014 12:54
----------------------------------------------------
> I think it would be accepted, but it depends on how it looks like
>
> The question is how good the client side validation has to be. email
> addresses are VERY complex, so the best choice in PHP is
> http://php.net/manual/de/function.filter-var.php FILTER_VALIDATE_EMAIL.
> Either js should check it via AJAX using the php option or replicate the
> php filter or only have a very basic JS check and do the real one server
> side.
----------------------------------------------------
Hi!
Ajax is too advanced for this simple feature, IMO. Especially since
the rest of the BE does not use any Ajax, so a server side validation
should suffice (at least better than nothing).
The only thing I don't know how to do is the translation of the
error message when validation fails. Will look into it.
Olle
More information about the TYPO3-dev
mailing list