October 2009
Beginner
408 pages
7h 27m
English
Now that you require authorization for a user to view administrative links, you need to build in the functionality that allows your administrators to log in and gain access to those links.
To do this, you first need to create a login form where a user can enter her credentials to request access to the administrative links.
A logical location to place your login form is at http://localhost/simple_blog/admin. For the moment, admin.php shows a blank page if the user hasn't logged in because authorization is required before the page will do anything at all. You can fix that by placing the login form at the bottom of admin.php, inside an else block. Doing so shows a login screen to anyone who isn't logged in already.
Read now
Unlock full access