Handling User Input Don't use $_POST. Use Symfony's Form Component. php bin/console make:form ProductType