O'Reilly logo

CMS Made Simple Development Cookbook by Samuel Goldstein

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

Creating a basic form in a module

This recipe encapsulates the primary purpose of many modules: it creates a form that an end-user can fill out, and stores the provided data into a database table. Not only does it demonstrate the basics of creating different form inputs, processing the form submission, and storing the data in a database table, but provides a typical install method that initializes the database table for use. It does all of this in a localizable fashion, so the module can be easily translated to work in other languages. In just a few pages of code, it provides much of a working application: all it lacks is some means of displaying and/or administering the submitted data (and possibly some data validation).

How to do it...

  1. Using ...

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