Processing Forms

A form gathers the information from your visitor and the script processes that information. The script can log the information to a database on the server, send the information via email, or any number of other functions.

In this chapter, since the focus is on creating Web forms, we’ll use a very simple PHP script to echo the data back to the visitor when they fill out and submit a form (Figure 17.4). I’ll also give you a script that you can use to submit a form’s contents to your email address (see page 258).

About PHP

PHP, which is a recursive abbreviation that stands for PHP: Hypertext Preprocessor, is an Open Source scripting language that was written specifically for making Web pages interactive. It is remarkably simple ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.