Next / Previous / Contents / TCC Help System / NM Tech homepage

14.10. Writing your form handler script

You can use many languages to write the form handler script that is run when the user clicks the Submit button on a form.

It is up to you to decide what to do with form data. You might e-mail it to somebody, or write it to a file, or add it to a database.

To write the handler script, you must know what controls are on the form, the name of each control, and what kind of data you expect.

There are three different protocols for transmitting the form data to the handler script. Use the method and enctype attributes on the form element to select one of these protocols:

Most of the popular scripting languages support retrieval of values from these protocols. For example, the Python language has a module called cgi that makes it trivial to retrieve form values transmitted by any of these three protocols.