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 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.