64x64 icon dark hosting
Get a Tuts+ subscription for just $45! Deploy New Relic now to claim.

Form Validation in Symfony 2

This post is part of a series called Working with Symfony 2.
Creating Reusable Forms in Symfony 2
Working With Databases in Symfony 2

Today we're going to continue where we left off last time, where we learned how to build reusable forms in Symfony 2. In this video, we'll learn how to validate the data that has been submitted to our form to ensure it is in the correct format, meets our data's requirements and then process the form submission accordingly.

And with that, we now have a working form, which validates our data and displays the validation error messages back to the user. 

So that's it for working with forms and form validation. Next up, we'll learn how to interact with a database in Symfony 2. Thanks for watching.