We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

form validation with jquery or phalcon?

Hi @all,

is it better to validate a form in front -or backend? With jquery or phalcon?

Kind regards

Stefan

If you do it frontend only, people can edit your source code, and make a validater ignore your form, and past in code that can SQL inject your website. You always do the backend, and if you want pretty animation then do the frontend, with jQuery validation or others :-)



60.0k

Thank you GunslerRage, it makes sense!