Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Creating a Login Script for a PHP/MySQL Blogging System (Part 1)
Oct 03, 2006 @ 15:00:31

DevShed is starting up a new series this morning with this new tutorial, part one in the creation of a simple blogging system using PHP and MySQL.

In this three-part tutorial we are going to be creating an open blogging system. We are also going to provide scripts that will make it possible to switch to a closed blogging system. This article, which is the first part, will cover the creation of the login scripts for a closed system.

They start with a definition, the difference between an open blogging system and a closed one (if users have to register or not). They start with the creation of the database to store the users in followed by the PHP code for the simple login page. It uses sessions to keep track of which user is logged in. Of course, where there's a log in, there needs to be a log out and they give the simple code for that. Finally, they include a "forgot your password" script to help users when they can't remember the info they'd signed up with.

tagged: mysql blogging system login logout sessions forgot password mysql blogging system login logout sessions forgot password

Link:


Trending Topics: