1. Code
  2. Web Development

Form Validation in Symfony 2

Read Time:1 minLanguages:
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.

Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.