Chapter 2. Processing Forms

Image

ENSURE THAT FORM DATA IS IN THE RIGHT FORMAT FOR YOUR NEEDS AND PROTECT YOUR SITE FROM ATTACKS

The first PHP programming skill that any Web programmer needs is the ability to manage the data submitted from forms filled out by the user, as forms are the primary way that users communicate with you. Without forms, your site is a one-way street.

The most common type of form is a signup process of some kind; the form might require simply an e-mail address to send the visitor a newsletter, or it might require extensive information such as name, address, e-mail address, and credit card data for a store checkout. For a classified ...

Get Codin’ for the Web: A Designer’s Guide to Developing Dynamic Web Sites now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.