13. 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.
Users will be able to register, log in, log out, change their password, and reset their password (should it be forgotten). A feature added in this edition of the book will be the requirement that users activate their account—by clicking a link in an email—before they can log in. Once the user has logged in, sessions will be used to limit access to pages and track the user.
As in the preceding chapter, the focus here ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access