O'Reilly logo

Catalyst 5.8 by Antano Solar John

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Forms

Now that you've deleted the sample row that you added when you created the database, we'll need to implement methods for adding (and editing) a person. As creating and validating HTML forms is a repetitive and boring task (you can write your forms in HTML just like before if you like to), we're going to use Catalyst::Controller::FormBuilder to automatically build our forms. All we have to do is create a definition of the form, and FormBuilder will generate the HTML and validate it when the user submits it. If there's a problem with one of the fields, FormBuilder will return the form to the user with an appropriate message. If the user's browser supports JavaScript, FormBuilder will validate the form on the client side to save a round-trip. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required