Chapter 12. Example—User Registration

The second example in the book—a user registration system—is one of the more common uses of PHP and MySQL. Most of the scripts developed here have been introduced and explained in previous chapters, although this chapter will place them all within the same context, using a consistent programming theory.

The application will have two aspects to it: a public side and an administrative one. Public users will be able to register, log in, log out, change their password, and reset their password (should it be forgotten). The administrative side will just display a list of registered users. The public side will use sessions, requiring a cookie to be sent, while the administrative pages will be protected by an HTTP ...

Get PHP and MySQL for Dynamic Web Sites: Visual QuickPro 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.