O'Reilly logo

PHP for Teens by Maneesh Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Developing a Log-In Page

Let’s develop a web page that lets the user log in and log out. You have probably seen pages like this before: when you shop, post in forums, or bank online. Username and password forms are ubiquitous and very important, so it is a good thing to learn. In this section you learn the basics: a simple user/pass combination with different text strings for each user. You develop the user/pass script without any record-keeping abilities. (Remember that a password box is the same as a text box, except it disguises the entry with asterisks.)

The best way to create a user/pass section is to use a database. You can create new users by adding information into the database. To read about databases, I recommend A Guide to SQL by Philip ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required